Branch: Tag:

2014-12-04

2014-12-04 19:25:05 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Testsuite: Fixed a few sprintf() return type tests.

Updated to know about the string(8bit) short hand.

511:      dnl Check the derived return type of sprintf().   test_any([[return sprintf("%O", typeof(sprintf("%1H", "foo"))); ]], -  "string(0..255)"); +  "string(8bit)");   test_any([[return sprintf("%O", typeof(sprintf("foo"))); ]],    "string(102..111)");   test_any([[return sprintf("%O", typeof(sprintf("foo%c", 17))); ]],    "string(17..17 | 102..111)");   test_any([[return sprintf("%O", typeof(sprintf("%2c\n", 'a'))); ]], -  "string(0..255)"); +  "string(8bit)");   test_any([[return sprintf("%O", typeof(sprintf("%c", 1023))); ]],    "string(1023..1023)");   test_any([[return sprintf("%O", typeof(sprintf("%c\n", 1023))); ]],
525:   test_any([[return sprintf("%O", typeof(sprintf("%c\n", Stdio))); ]],    "string");   test_any([[return sprintf("%O", typeof(sprintf("%4[1]c", 17))); ]], -  "string(0..255)"); +  "string(8bit)");   test_any([[return sprintf("%O", typeof(sprintf("%[1]n", 17))); ]],    "string(zero)");