Lines Matching defs:expect
93 expect()
155 WANT="$1"; shift # we do not really expect this, but ...
230 expect abcd abcd
231 expect % %%
232 expect xxx%yyy xxx%%yyy
233 expect -123 -123
249 expect "${BSL}" '\\'
250 expect '?' '\\' # must be just 1 char
252 expect "${NL}" '\n'
253 expect " " '\t' # a literal <tab> in " "
255 expect "0" '\60'
256 expect "1" '\061'
257 expect "21" '\0621'
258 expect "${NL}" '\12'
259 expect "" '\1'
261 expect "" '\b'
262 expect "" '\f'
264 expect " " '\r'
266 expect "" '\a'
267 expect "" '\v'
270 expect "hello${NL}world${NL}!!${NL}" 'hello\nworld\n\a\a!!\n'
304 expect abcd %s abcd
305 expect ' a' %3s a
306 expect 'a ' %-3s a
307 expect abcd %3s abcd
308 expect abcd %-3s abcd
310 expect a %.1s abcd
311 expect ab %.2s abcd
312 expect abc %.3s abcd
313 expect abcd %.4s abcd
314 expect abcd %.5s abcd
315 expect abcd %.6s abcd
317 expect ' a' %4.1s abcd
318 expect ' ab' %4.2s abcd
319 expect ' abc' %4.3s abcd
320 expect abcd %4.4s abcd
321 expect abcd %4.5s abcd
322 expect abcd %4.6s abcd
324 expect ' a' %7.1s abcd
325 expect 'ab ' %-7.2s abcd
326 expect ' abc' %7.3s abcd
327 expect ' abcd' %7.4s abcd
328 expect 'abcd ' %-7.5s abcd
329 expect ' abcd' %7.6s abcd
331 expect 'aba a' %.2s%.1s%2.1s abcd abcd abcd
333 expect 123 %s 123
334 expect 1 %.1s 123
335 expect 12 %+.2s 123
336 expect -1 %+.2s -123
337 expect 12 '% .2s' 123
338 expect -1 '%+.2s' -123
340 expect '' %s ''
341 expect ' ' %1s ''
342 expect ' ' %6s ''
343 expect ' ' %2.1s ''
344 expect '' %.0s abcd
345 expect ' ' %2.0s abcd
346 expect ' ' %-3.0s abcd
358 expect a '%c' a
359 expect a '%c' abc
360 expect 'ad' '%c%c' abc def
361 expect '@ a@a @' "@%3c@%-3c@" a a
362 expect '@ a@a @' "@%2c@%-4c@" a a
376 expect 0 '%d' 0
377 expect 1 '%d' 1
378 expect 999 '%d' 999
379 expect -77 '%d' -77
380 expect 51 '%d' 0x33
381 expect 51 '%d' 063
383 expect ' 2' '%4d' 2
384 expect '0002' '%04d' 2
385 expect '-002' '%04d' -2
386 expect '2 ' '%-4d' 2
387 expect ' 02' '%4.2d' 2
388 expect ' 22' '%4.2d' 22
389 expect ' 222' '%4.2d' 222
390 expect '2222' '%4.2d' 2222
391 expect '22222' '%4.2d' 22222
392 expect ' -02' '%4.2d' -2
393 expect '02 ' '%-4.2d' 2
394 expect '-02 ' '%-4.2d' -2
395 expect '22 ' '%-4.2d' 22
396 expect '222 ' '%-4.2d' 222
397 expect '2222' '%-4.2d' 2222
398 expect '22222' '%-4.2d' 22222
399 expect 1 '%.0d' 1
400 expect '' '%.0d' 0
401 expect '' '%.d' 0
402 expect ' ' '%3.d' 0
403 expect ' ' '%-4.d' 0
404 expect ' ' '%05.d' 0
406 expect 65 '%d' "'A"
407 expect 065 '%03d' "'A"
408 expect 49 '%d' "'1"
411 expect 00 '%.2d' "'"
413 expect 68 '%d' '"D'
414 expect 069 '%03d' '"E'
415 expect 51 '%d' '"3'
419 expect -1 '% d' -1
420 expect ' 1' '% d' 1
421 expect -1 '% 1d' -1
422 expect ' 1' '% 1d' 1
423 expect -1 '% 0d' -1
424 expect ' 1' '% 0d' 1
425 expect ' -1' '% 5d' -1
426 expect ' 1' '% 5d' 1
427 expect ' 01' '%0 3d' 1
428 expect '-01' '%0 3d' -1
429 expect ' 03' '% 4.2d' 3
430 expect ' -03' '% 4.2d' -3
432 expect -1 '%+d' -1
433 expect +1 '%+d' 1
434 expect ' -7' '%+3d' -7
435 expect ' +7' '%+3d' 7
436 expect ' -02' '%+4.2d' -2
437 expect ' +02' '%+4.2d' 2
438 expect '-09 ' '%-+4.2d' -9
439 expect '+09 ' '%+-4.2d' 9
442 expect -1 '%+ d' -1
443 expect +1 '%+ d' 1
444 expect ' -7' '%+ 3d' -7
445 expect ' +7' '%+ 3d' 7
446 expect ' -02' '%+ 4.2d' -2
447 expect ' +02' '%+ 4.2d' 2
448 expect '-09 ' '%- +4.2d' -9
449 expect '+09 ' '% +-4.2d' 9
471 expect 0 '%i' 0
472 expect 1 '%i' 1
473 expect 999 '%i' 999
474 expect -77 '%i' -77
475 expect 51 '%i' 0x33
476 expect 51 '%i' 063
477 expect '02 ' '%-4.2i' 2
478 expect ' +02' '%+ 4.2i' 2
480 expect 0 '%i' '"'
502 expect 0 '%u' 0
503 expect 1 '%u' 1
504 expect 999 '%u' 999
505 expect 51 '%u' 0x33
506 expect 51 '%u' 063
508 expect ! '-*' '%u' -77
510 expect ' 2' '%4u' 2
511 expect '0002' '%04u' 2
512 expect '2 ' '%-4u' 2
513 expect ' 02' '%4.2u' 2
514 expect ' 22' '%4.2u' 22
515 expect ' 222' '%4.2u' 222
516 expect '2222' '%4.2u' 2222
517 expect '22222' '%4.2u' 22222
518 expect '02 ' '%-4.2u' 2
519 expect '22 ' '%-4.2u' 22
520 expect '222 ' '%-4.2u' 222
521 expect '2222' '%-4.2u' 2222
522 expect '22222' '%-4.2u' 22222
523 expect 1 '%.0u' 1
524 expect '' '%.0u' 0
525 expect '' '%.u' 0
526 expect ' ' '%3.u' 0
527 expect ' ' '%-4.u' 0
528 expect ' ' '%05.u' 0
530 expect 65 '%u' "'A"
531 expect 065 '%03u' "'A"
532 expect 49 '%u' "'1"
536 expect 68 '%u' '"D'
537 expect 069 '%03u' '"E'
538 expect 51 '%u' '"3'
544 expect 1 '% u' 1
545 expect 1 '% 1u' 1
546 expect 1 '% 0u' 1
547 expect ' 1' '% 5u' 1
548 expect 001 '%0 3u' 1
549 expect ' 03' '% 4.2u' 3
551 expect ! '-*' '% u' -1
553 expect 1 '%+u' 1
554 expect ' 7' '%+3u' 7
555 expect ' 02' '%+4.2u' 2
556 expect '09 ' '%+-4.2u' 9
558 expect ! '-*' '%+u' -7
575 expect 0 '%o' 0
576 expect 1 '%o' 1
577 expect 1747 '%o' 999
578 expect 63 '%o' 0x33
579 expect 63 '%o' 063
581 expect ' 2' '%4o' 2
582 expect '0002' '%04o' 2
583 expect '2 ' '%-4o' 2
584 expect ' 02' '%4.2o' 2
585 expect '02 ' '%-4.2o' 2
586 expect 1 '%.0o' 1
587 expect '' '%.0o' 0
589 expect ' 3' %3o 03
590 expect ' 33' %3o 033
591 expect '333' %3o 0333
592 expect '3333' %3o 03333
593 expect '33333' %3o 033333
595 expect '4 ' %-3o 04
596 expect '45 ' %-3o 045
597 expect '456' %-3o 0456
598 expect '4567' %-3o 04567
599 expect '45670' %-3o 045670
601 expect '04 ' %#-3o 04
602 expect '045' %-#3o 045
603 expect '0456' %#-3o 0456
604 expect '04567' %-#3o 04567
605 expect '045670' %#-3o 045670
607 expect 101 '%o' "'A"
608 expect 0101 '%04o' "'A"
609 expect 61 '%o' "'1"
613 expect 01747 '%#o' 999
614 expect ' 02' '%#4o' 2
615 expect '02 ' '%#-4.2o' 2
616 expect 0101 '%#o' "'A"
617 expect 0101 '%#04o' "'A"
618 expect 061 '%#o' "'1"
621 expect 063 '%#o' 063
627 expect '*7777777' '%o' -1
628 expect '*7777776' '%04o' -2
629 expect '*7777770' '%7o' -8
630 expect '0*7777700' '%#o' -0100
631 expect '*7777663' '%o' -77
641 expect 0 '%x' 0
642 expect 1 '%x' 1
643 expect 3e7 '%x' 999
644 expect 33 '%x' 0x33
645 expect 33 '%x' 063
647 expect ' 2' '%4x' 2
648 expect '0002' '%04x' 2
649 expect '2 ' '%-4x' 2
650 expect ' 02' '%4.2x' 2
651 expect '02 ' '%-4.2x' 2
652 expect 1 '%.0x' 1
653 expect '' '%.0x' 0
655 expect 41 '%x' "'A"
656 expect 041 '%03x' "'A"
657 expect 31 '%x' "'1"
661 expect ' face ' '%5x ' 64206
665 expect 0 %#x 0
666 expect 0x1 %#x 1
674 expect '*ffffff' %x -1
675 expect '*fffff0' %x -16
676 expect '*fff00f' %x -4081
677 expect '*fff00d' %x -4083
678 expect '*fffabc' %x -1348
679 expect '*ff3502' %x -0xCAFE
695 expect 3E7 %X 999
698 expect ' FACE ' '%5X ' 64206
699 expect DEADBEEF %X 3735928559
701 expect 1234FEDC %X 0x1234fedc
703 expect '*FFCAFE' %X -13570
704 expect '*FFFFFE' %X -2
719 expect 0.000000 %f 0
720 expect 1.000000 %f 1
721 expect 1.500000 %f 1.5
722 expect -1.000000 %f -1
723 expect -1.500000 %f -1.5
725 expect 44.000000 %f 44
726 expect -43.000000 %f -43
727 expect '3.33333?' %f 3.333333333333333
728 expect '0.78539?' %f .7853981633974483
729 expect '0.00012?' %f .000123456789
730 expect '1234.56789?' %f 1234.56789
732 expect 0 %.0f 0
733 expect 1 %.0f 1
734 expect 1. %#.0f 1.1
735 expect 0. %#.0f 0
736 expect 1. %#.0f 1
737 expect 1. %#.0f 1.2
739 expect 0.0 %.1f 0
740 expect 1.0 %.1f 1
741 expect 1.1 %#.1f 1.1
742 expect 0.0 %#.1f 0
743 expect 1.2 %#.1f 1.2
745 expect ' 0.0' %6.1f 0
746 expect ' 1.0' %6.1f 1
747 expect ' -1.0' %6.1f -1
749 expect '0000.0' %06.1f 0
750 expect '0001.0' %06.1f 1
751 expect '-001.0' %06.1f -1
753 expect ' +0.0' %+6.1f 0
754 expect ' +1.0' %+6.1f 1
755 expect ' -1.0' %+6.1f -1
757 expect ' 0.0' '% 6.1f' 0
758 expect ' 1.0' '% 6.1f' 1
759 expect ' -1.0' '% 6.1f' -1
761 expect ' 000.0' '%0 6.1f' 0
762 expect ' 001.0' '% 06.1f' 1
763 expect '-001.0' '%0 6.1f' -1
765 expect '+000.0' '%0+6.1f' 0
766 expect '+001.0' '%+06.1f' 1
767 expect '-001.0' '%0+6.1f' -1
769 expect '0000000.00' %010.2f 0
770 expect '-000009.00' %010.2f -9
772 expect '0.0 ' %-10.1f 0
773 expect '1.0 ' %-10.1f 1
774 expect '-1.0 ' %-10.1f -1
776 expect '0.00 ' %-10.2f 0
777 expect '-9.00 ' %-10.2f -9
779 expect '0.0 ' %-010.1f 0
780 expect '1.0 ' %-010.1f 1
781 expect '-1.0 ' %-010.1f -1
783 expect '0.00 ' %-6.2f 0
784 expect '-9.00 ' %-6.2f -9
786 expect '0.00 ' %-010.2f 0
787 expect '-9.00 ' %-010.2f -9
789 expect ' 0' %7.0f 0
790 expect '1 ' %-7.0f 1
791 expect ' 0.' %#7.0f 0
792 expect ' 1.' %#7.0f 1
793 expect ' 1.' %#7.0f 1.1
794 expect ' 1.' %#7.0f 1.2
795 expect ' -1.' %#7.0f -1.2
796 expect '1. ' %-#7.0f 1.1
797 expect '0. ' %#-7.0f 0
798 expect '1. ' %-#7.0f 1
799 expect '1. ' %#-7.0f 1.2
800 expect '-1. ' %#-7.0f -1.2
801 expect ' +0' %+7.0f 0
802 expect '+1 ' %-+7.0f 1
803 expect ' +1.' %+#7.0f 1.1
804 expect ' +0.' %#+7.0f 0
805 expect ' +1.' %+#7.0f 1
806 expect ' +1.' %#+7.0f 1.2
807 expect ' -1.' %#+7.0f -1.2
808 expect ' 0' '% 7.0f' 0
809 expect ' 1 ' '%- 7.0f' 1
810 expect '-1 ' '%- 7.0f' -1
811 expect ' 1.' '% #7.0f' 1.1
812 expect ' 0.' '%# 7.0f' 0
813 expect ' 1.' '% #7.0f' 1
814 expect ' 1.' '%# 7.0f' 1.2
815 expect ' -1.' '%# 7.0f' -1.2
860 expect '0.78539?' %F .7853981633974483
861 expect '0.00012?' %F .000123456789
862 expect '1234.56789?' %F 1234.56789
881 expect 0.000000e+00 %e 0
882 expect 1.000000e+00 %e 1
883 expect 1.500000e+00 %e 1.5
884 expect -1.000000e+00 %e -1
885 expect -1.500000e+00 %e -1.5
887 expect 4.400000e+01 %e 44
888 expect -4.300000e+01 %e -43
889 expect '3.33333?e+00' %e 3.333333333333333
890 expect '7.85398?e-01' %e .7853981633974483
891 expect '1.23456?e-04' %e .000123456789
892 expect '1.23456?e+03' %e 1234.56789
894 expect 0e+00 %.0e 0
895 expect 1e+00 %.0e 1
896 expect 1.e+00 %#.0e 1.1
897 expect 0.e+00 %#.0e 0
898 expect 1.e+00 %#.0e 1
899 expect 1.e+00 %#.0e 1.2
901 expect 0.0e+00 %.1e 0
902 expect 1.0e+00 %.1e 1
903 expect 1.1e+00 %#.1e 1.1
904 expect 0.0e+00 %#.1e 0
905 expect 1.2e+00 %#.1e 1.2
907 expect ' 0.0e+00' %10.1e 0
908 expect ' 1.0e+00' %10.1e 1
909 expect ' -1.0e+00' %10.1e -1
911 expect '0000.0e+00' %010.1e 0
912 expect '0001.0e+00' %010.1e 1
913 expect '-001.0e+00' %010.1e -1
915 expect ' +0.0e+00' %+10.1e 0
916 expect ' +1.0e+00' %+10.1e 1
917 expect ' -1.0e+00' %+10.1e -1
919 expect ' 0.0e+00' '% 10.1e' 0
920 expect ' 1.0e+00' '% 10.1e' 1
921 expect ' -1.0e+00' '% 10.1e' -1
923 expect ' 000.0e+00' '%0 10.1e' 0
924 expect ' 001.0e+00' '% 010.1e' 1
925 expect '-001.0e+00' '%0 10.1e' -1
927 expect '000.00e+00' %010.2e 0
928 expect '-09.00e+00' %010.2e -9
930 expect '0.0e+00 ' %-10.1e 0
931 expect '1.0e+00 ' %-10.1e 1
932 expect '-1.0e+00 ' %-10.1e -1
934 expect '+0.0e+00 ' %-+10.1e 0
935 expect '+1.0e+00 ' %+-10.1e 1
936 expect '-1.0e+00 ' %+-10.1e -1
938 expect ' +0.0e+00' '%+ 10.1e' 0
939 expect ' +1.0e+00' '% +10.1e' 1
940 expect ' -1.0e+00' '%+ 10.1e' -1
942 expect '0.00e+00 ' %-10.2e 0
943 expect '-9.00e+00 ' %-10.2e -9
945 expect '0.0e+00 ' %-010.1e 0
946 expect '1.0e+00 ' %0-10.1e 1
947 expect '-1.0e+00 ' %-010.1e -1
949 expect '0.00e+00 ' %-010.2e 0
950 expect '-9.00e+00 ' %-010.2e -9
952 expect ' 0e+00' %7.0e 0
953 expect '1e+00 ' %-7.0e 1
954 expect ' 1.e+00' %#7.0e 1.1
955 expect ' 0.e+00' %#7.0e 0
956 expect ' 1.e+00' %#7.0e 1
957 expect ' 1.e+00' %#7.0e 1.2
958 expect '-1.e+00' %#7.0e -1.2
959 expect '1.e+00 ' %-#7.0e 1.1
960 expect '0.e+00 ' %#-7.0e 0
961 expect '1.e+00 ' %-#7.0e 1
962 expect '1.e+00 ' %#-7.0e 1.2
963 expect '-1.e+00' %#-7.0e -1.2
964 expect ' +0e+00' %+7.0e 0
965 expect '+1e+00 ' %-+7.0e 1
966 expect '+1.e+00' %+#7.0e 1.1
967 expect '+0.e+00' %#+7.0e 0
968 expect '+1.e+00' %+#7.0e 1
969 expect '+1.e+00' %#+7.0e 1.2
970 expect '-1.e+00' %#+7.0e -1.2
971 expect ' 0e+00' '% 7.0e' 0
972 expect ' 1e+00 ' '%- 7.0e' 1
973 expect '-1e+00 ' '%- 7.0e' -1
974 expect ' 1.e+00' '% #7.0e' 1.1
975 expect ' 0.e+00' '%# 7.0e' 0
976 expect ' 1.e+00' '% #7.0e' 1
977 expect ' 1.e+00' '%# 7.0e' 1.2
978 expect '-1.e+00' '%# 7.0e' -1.2
1022 expect 0.000000E+00 %E 0
1023 expect -4.300000E+01 %E -43
1024 expect 1E+00 %.0E 1
1025 expect 1.E+00 %#.0E 1
1026 expect '-9.00E+00 ' %-010.2E -9
1056 expect 1 %.1g 1 # p = 1, x = 0 : %.0f
1057 expect 0.5 %.1g 0.5 # p = 1, x = -1: %.1f
1058 expect 1 %.2g 1 # p = 2, x = 0 : %.1f
1059 expect 0.5 %.2g 0.5 # p = 2, x = -1: %.2f
1061 expect 1 %g 1 # p = 6, x = 0 : %.5f
1062 expect -0.5 %g -0.5 # p = 6, x = -1: %.6f
1064 expect 0.001234 %.4g 0.001234 # p= 4, x = -3: %.6f
1066 expect 9999 %.4g 9999 # p = 4, x = 3 : %.0f
1067 expect 9999 %.5g 9999 # p = 5, x = 3 : %.1f
1069 expect 1. %#.1g 1 # p = 1, x = 0 : %.0f
1070 expect 0.5 %#.1g 0.5 # p = 1, x = -1: %.1f
1071 expect 1.0 %#.2g 1 # p = 2, x = 0 : %.1f
1072 expect 0.50 %#.2g 0.5 # p = 2, x = -1: %.2f
1074 expect 1.00000 %#g 1 # p = 6, x = 0 : %.5f
1075 expect -0.500000 %#g -0.5 # p = 6, x = -1: %.6f
1077 expect 0.001234 %#.4g 0.001234 # p= 4, x = -3 : %.6f
1079 expect 9999. %#.4g 9999 # p = 4, x = 3 : %.0f
1080 expect 9999.0 %#.5g 9999 # p = 5, x = 3 : %.1f
1082 expect 4.4?e+03 %.3g 4444 # p = 3, x = 3 : %.2e
1083 expect 1.2e-05 %.2g 0.000012 # p = 2, x = -5: %.1e
1085 expect 1e+10 %g 10000000000
1086 expect 1e+10 %g 1e10
1087 expect 1e+10 %g 1e+10
1088 expect 1e-10 %g 1e-10
1089 expect 10000000000 %.11g 10000000000
1090 expect 10000000000. %#.11g 10000000000
1091 expect 1e+99 %g 1e99
1092 expect 1e+100 %g 1e100
1093 expect 1e-100 %g 1e-100
1119 expect 1.2E-05 %.2G 0.000012 # p = 2, x = -5: $.1e
1143 expect 0x0p+0 '%.0a' 0
1144 expect 0x0.p+0 '%#.0a' 0
1145 expect 0x0.000p+0 '%.3a' 0
1146 expect '0x?.*p+*' '%a' 123
1147 expect '0x?.*p-*' '%a' 0.123
1157 expect "${VAL}" "%.4f" "${A_STRING}"
1178 expect 0X0P+0 '%.0A' 0
1179 expect 0X0.P+0 '%#.0A' 0
1180 expect 0X0.000P+0 '%.3A' 0
1181 expect '0X?.*P+*' '%A' 123
1182 expect '0X?.*P-*' '%A' 0.123
1189 expect "${VAL}" "%.4f" "${A_STRING}"
1210 expect '' %s
1211 expect '' %b
1212 expect 0 %d
1213 expect 0 %o
1214 expect 0 %x
1215 expect 0 %#o
1216 expect 0 %#X
1218 expect 'xxxyyyzzz' '%syyy%szzz' xxx
1219 expect 'a=1, b=0' 'a=%d, b=%d' 1
1221 expect 000000 %d%u%i%x%o%X
1222 expect 437000 %d%u%i%x%o%X 4 3 7
1226 expect 0.000000 %f
1227 expect 'x=0.0' '%s=%.1f' x
1238 expect abcd %s a b c d
1239 expect 1234 %d 1 2 3 4
1240 expect ' 1 2 3 4' %2d 1 2 3 4
1241 expect abcd %.1s aaa bbb ccc ddd
1242 expect ' a=1 b=2 c=3' %2s=%d a 1 b 2 c 3
1243 expect "hello${NL}world${NL}" '%s\n' hello world
1244 expect "a${NL}b${NL}c${NL}d${NL}" '%.1s\n' aaa bbb ccc ddd
1246 expect "\
1253 expect " 1 010x1${NL} 220260x16${NL} 9201340x5c${NL}" \
1256 expect ' 1 2 3 4 5' %2d 1 2 3 4 5
1257 expect ' 1 2 3 4 5 0' %2d%2d%2d 1 2 3 4 5
1270 expect '' %b ''
1271 expect '' %.0b abcd
1272 expect abcd %b abcd
1273 expect ' ab' %3.2b abcd
1274 expect 'a ' %-3.1b abcd
1275 expect ' ' %3.0b abcd
1279 expect "${BSL} ${NL}" %b '\\\t\n'
1280 expect ' ' %b '\a\v\r\f\b'
1284 expect 'ABC' %b '\01A\002\0102\0003C'
1285 expect "a${NL}b${NL}" %b 'a\nb\n'
1288 expect " ab " %7.4b 'ab\r\bxy\t\t\n'
1290 expect "111 " %-6.3b '\00611\061\01\n\t\n'
1349 expect ab %b 'ab\cdef'
1350 expect ab a%bc 'b\cd'
1352 expect abcd %s%c%x%b a bcd 12 'd\c'
1353 expect ad %.1s%x%b%c%x all 13 '\cars' cost 12
1354 expect "a${NL}b" '%b\n' a 'b\c' d '\ce'
1357 # expect "abcd" %.1b 'a\c' 'b\c' 'c\c' 'd\c' '\c' e
1365 expect abcdefjklmno %s%b%s abc 'def\c' ghi ';' %s%s jkl mno
1384 expect "${lpad}7" '%*d' "$i" 7
1385 expect "6${rpad}" '%-*d' "$i" 6
1386 expect "${zpad}5" '%0*d' "$i" 5
1409 expect "${res}" '%.*s' "$i" aaaaaaaaaaaaaaaa
1412 expect "3${zpad}" '%#.*f' "$i" 3
1433 expect " ${res}" '%*.*s' $(( $i + 2 )) "$i" zzzzzzzzzzz
1436 expect ' ab: 9: 1.20' "%*.*s:%*d:%*.*f" 4 2 abcde 3 9 5 2 1.2
1537 expect 88888 %jd 88888
1538 expect 88888 %ld 88888
1539 expect 88888 %lld 88888
1540 expect 88888 %Ld 88888
1541 expect 88888 %td 88888
1542 expect 88888 %zd 88888
1544 expect 23352 %hd 88888
1545 expect 56 %hhd 88888
1547 expect 300000 %jd 300000
1548 expect 300000 %Ld 300000
1549 expect -27680 %hd 300000
1550 expect -32 %hhd 300000
1552 expect 15b38 %jx 88888
1553 expect 5b38 %hx 88888
1554 expect 38 %hhx 88888
1556 expect 93e0 %hx 300000
1557 expect e0 %hhx 300000
1563 expect 6.500000e+01 '%e' "'A"
1564 expect 6.5e+01 '%.1e' "'A"
1565 expect 5e+01 '%.0e' "'1"
1568 expect 99.000000 '%f' '"c'
1569 expect 97 '%g' '"a'
1572 expect '' '\e'
1573 expect '' '\E'
1574 expect '' '\e\E'
1577 expect '' %b '\^A\^a\1'
1578 expect 'S4=X' %b '\1234\75X'
1579 expect 'x�z' %b 'x\M-Yz'
1580 expect 'x�z' %b 'x\M^wz'
1581 expect 'ab' %b 'a\^?b'
1582 expect '-�-' %b '-\M^?-'
1584 expect 'A1b2c3D4' '\x411%b\x444' '\x622\x633'
1585 expect '"'\' %b\\\' '\"\e'
1586 expect '+' %b '\x1+\x3'
1587 expect '[1m' %b '\E[\61\x6d'
1597 expect 'hello world' 'hello world' a b c d
1688 expect abcd %B abcd
1689 expect ' abcd' %5B abcd
1690 expect 'abcd ' %-5B abcd
1691 expect ab %.2B abcd
1692 expect ' ab' %5.2B abcd
1693 expect 'ab ' %-5.2B abcd
1696 expect "abcd${BSL}n" %B "abcd${NL}"
1697 expect "ab${BSL}tcd" %B "ab cd"
1698 expect "${BSL}\"${BSL}e${BSL}a${BSL}b${BSL}f${BSL}r${BSL}v" \
1703 expect "${BSL}'${BSL}^?" %B \'''
1704 expect "${BSL}^A${BSL}^B" %B ''
1705 expect "x${BSL}M-Yz" %B 'x�z'
1706 expect "-${BSL}M^W-" %B '-�-'
1707 expect ":${BSL}M^?:" %B ':�:'
1710 expect " abcd${BSL}n" %9B "abcd${NL}"
1711 expect "ab${BSL}tcd " %-9B "ab cd"
1712 expect " ${BSL}'${BSL}^?" %6B \'''
1713 expect "${BSL}^A${BSL}^B " %-7B ''
1714 expect " -${BSL}M^W-" %8B '-�-'
1715 expect ":${BSL}M^?: " %-8B ':�:'
1718 expect "abcd${BSL}" %.5B "abcd${NL}"
1719 expect "ab${BSL}" %.3B "ab cd"
1720 expect "${BSL}\"${BSL}" %.3B '" '
1724 expect "${BSL}" %.1B \'''
1725 expect "${BSL}^" %.2B ''
1726 expect "x${BSL}M-" %.4B 'x�z'
1727 expect "-${BSL}M^" %.4B '-�-'
1728 expect ":${BSL}M" %.3B ':�:'