pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:858:
test_any([[return sprintf("%O", typeof(sprintf("%c\n", 1023))); ]], "string(10 | 1023)"); dnl The following is due to (string & sprintf_result) == sprintf_result. test_any([[return sprintf("%O", typeof(sprintf("%c\n", Stdio))); ]], sprintf("%O", sprintf_result)); test_any([[return sprintf("%O", typeof(sprintf("%4[1]c", 17))); ]], "string(8bit)"); test_any([[return sprintf("%O", typeof(sprintf("%[1]n", 17))); ]], "string(zero)");
-
test_any([[return sprintf("%O", typeof(aggregate("foo")));]], "array(string(102..111))");
+
test_any([[return sprintf("%O", typeof(aggregate("foo")));]], "array(string(
3:
102..111))");
test_any([[int a; return sprintf("%O", typeof(aggregate(a)));]], "array(int)"); test_any([[int|string a; string s = sprintf("%O", typeof(aggregate(a))); return (< "array(string) | array(int)", "array(string | int)", "array(int | string)" >)[s];]], 1); test_any([[return sprintf("%O", typeof(aggregate()));]], "array(zero)"); test_any([[int i; return (< "int", "int | zero", "zero | int" >) [sprintf("%O", typeof(max(i,0)))];]], 1) test_any([[array(string) a; return sprintf("%O", typeof(a[0])); ]], "string")