pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2015-09-06
2015-09-06 18:56:36 by Martin Nilsson <nilsson@fastmail.com>
9d565932a8186059f68b3033605b1958feeb823d (
5
lines) (+
5
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
Tests for %m.
592:
"string(8bit)"); test_any([[return sprintf("%O", typeof(sprintf("foo"))); ]], "string(102..111)");
+
test_any([[return sprintf("%O", typeof(sprintf("%m"))); ]],
+
"string(32..122)");
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'))); ]],
13658:
test_do(return sprintf("%1H", "x"*255);) test_eval_error(return sprintf("%1H", "x"*256);)
+
test_eq(sprintf("%m"),strerror(errno()))
+
define(test_object_sprintf, [[ test_eq(sprintf("%"+$1, OBJ), $1); test_eq(sprintf("%"+$1+"%<"+$1, OBJ), $1 + $1);