@@ -588,3 +588,127 @@ BBBBCCCC**DDDD"))
588
588
:pretty t )
589
589
(" (A (CORE:UNQUOTE A) (CORE:UNQUOTE-SPLICE A) (CORE:UNQUOTE-NSPLICE A)
590
590
. `(A ,@(A (CORE:UNQUOTE A)) ,.A . ,A))" ))
591
+
592
+ (defun fmt (stream argument colonp atsignp &rest params)
593
+ (declare (ignore argument colonp atsignp))
594
+ (format stream " ~S " params))
595
+
596
+ (test cdr-7.comma.1.interpreted
597
+ (with-standard-io-syntax
598
+ (format nil (progn " ~ 1,2 /clasp-tests:fmt/ " ) t ))
599
+ (" (1 2)" ))
600
+
601
+ (test cdr-7.comma.1.compiled
602
+ (with-standard-io-syntax
603
+ (format nil " ~ 1,2 /clasp-tests:fmt/ " t ))
604
+ (" (1 2)" ))
605
+
606
+ (test cdr-7.comma.2.interpreted
607
+ (with-standard-io-syntax
608
+ (format nil (progn " ~ 1,2, /clasp-tests:fmt/ " ) t ))
609
+ (" (1 2)" ))
610
+
611
+ (test cdr-7.comma.2.compiled
612
+ (with-standard-io-syntax
613
+ (format nil " ~ 1,2, /clasp-tests:fmt/ " t ))
614
+ (" (1 2)" ))
615
+
616
+ (test cdr-7.comma.3.interpreted
617
+ (with-standard-io-syntax
618
+ (format nil (progn " ~ 1,2 :/clasp-tests:fmt/ " ) t ))
619
+ (" (1 2)" ))
620
+
621
+ (test cdr-7.comma.3.compiled
622
+ (with-standard-io-syntax
623
+ (format nil " ~ 1,2 :/clasp-tests:fmt/ " t ))
624
+ (" (1 2)" ))
625
+
626
+ (test cdr-7.comma.4.interpreted
627
+ (with-standard-io-syntax
628
+ (format nil (progn " ~ 1,2, :/clasp-tests:fmt/ " ) t ))
629
+ (" (1 2)" ))
630
+
631
+ (test cdr-7.comma.4.compiled
632
+ (with-standard-io-syntax
633
+ (format nil " ~ 1,2, :/clasp-tests:fmt/ " t ))
634
+ (" (1 2)" ))
635
+
636
+ (test cdr-7.parameter.1.interpreted
637
+ (with-standard-io-syntax
638
+ (format nil (progn " ~ 1,v /clasp-tests:fmt/ " ) 2 t ))
639
+ (" (1 2)" ))
640
+
641
+ (test cdr-7.parameter.1.compiled
642
+ (with-standard-io-syntax
643
+ (format nil " ~ 1,v /clasp-tests:fmt/ " 2 t ))
644
+ (" (1 2)" ))
645
+
646
+ (test cdr-7.parameter.2.interpreted
647
+ (with-standard-io-syntax
648
+ (format nil (progn " ~ 1,v /clasp-tests:fmt/ " ) nil t ))
649
+ (" (1 NIL)" ))
650
+
651
+ (test cdr-7.parameter.2.compiled
652
+ (with-standard-io-syntax
653
+ (format nil " ~ 1,v /clasp-tests:fmt/ " nil t ))
654
+ (" (1 NIL)" ))
655
+
656
+ (test cdr-7.parameter.3.interpreted
657
+ (with-standard-io-syntax
658
+ (format nil (progn " ~ 1,v, /clasp-tests:fmt/ " ) 2 t ))
659
+ (" (1 2)" ))
660
+
661
+ (test cdr-7.parameter.3.compiled
662
+ (with-standard-io-syntax
663
+ (format nil " ~ 1,v, /clasp-tests:fmt/ " 2 t ))
664
+ (" (1 2)" ))
665
+
666
+ (test cdr-7.parameter.4.interpreted
667
+ (with-standard-io-syntax
668
+ (format nil (progn " ~ 1,v, /clasp-tests:fmt/ " ) nil t ))
669
+ (" (1 NIL)" ))
670
+
671
+ (test cdr-7.parameter.4.compiled
672
+ (with-standard-io-syntax
673
+ (format nil " ~ 1,v, /clasp-tests:fmt/ " nil t ))
674
+ (" (1 NIL)" ))
675
+
676
+ (test cdr-7.parameter.5.interpreted
677
+ (with-standard-io-syntax
678
+ (format nil (progn " ~ 1,v :/clasp-tests:fmt/ " ) 2 t ))
679
+ (" (1 2)" ))
680
+
681
+ (test cdr-7.parameter.5.compiled
682
+ (with-standard-io-syntax
683
+ (format nil " ~ 1,v :/clasp-tests:fmt/ " 2 t ))
684
+ (" (1 2)" ))
685
+
686
+ (test cdr-7.parameter.6.interpreted
687
+ (with-standard-io-syntax
688
+ (format nil (progn " ~ 1,v :/clasp-tests:fmt/ " ) nil t ))
689
+ (" (1 NIL)" ))
690
+
691
+ (test cdr-7.parameter.6.compiled
692
+ (with-standard-io-syntax
693
+ (format nil " ~ 1,v :/clasp-tests:fmt/ " nil t ))
694
+ (" (1 NIL)" ))
695
+
696
+ (test cdr-7.parameter.7.interpreted
697
+ (with-standard-io-syntax
698
+ (format nil (progn " ~ 1,v, :/clasp-tests:fmt/ " ) 2 t ))
699
+ (" (1 2)" ))
700
+
701
+ (test cdr-7.parameter.7.compiled
702
+ (with-standard-io-syntax
703
+ (format nil " ~ 1,v, :/clasp-tests:fmt/ " 2 t ))
704
+ (" (1 2)" ))
705
+
706
+ (test cdr-7.parameter.8.interpreted
707
+ (with-standard-io-syntax
708
+ (format nil (progn " ~ 1,v, :/clasp-tests:fmt/ " ) nil t ))
709
+ (" (1 NIL)" ))
710
+
711
+ (test cdr-7.parameter.8.compiled
712
+ (with-standard-io-syntax
713
+ (format nil " ~ 1,v, :/clasp-tests:fmt/ " nil t ))
714
+ (" (1 NIL)" ))
0 commit comments