pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:13715:
test_object_sprintf("f") test_object_sprintf("g") test_object_sprintf("E") test_object_sprintf("G") test_object_sprintf("F") test_object_sprintf("O") test_object_sprintf("s") test_object_sprintf("q") test_do(add_constant("OBJ"))
+
test_any_equal([[
+
class A {
+
mapping m;
+
string _sprintf(int t, mapping args)
+
{
+
m = args;
+
return "";
+
}
+
};
+
A a = A();
+
string s = sprintf("%-2.3O", a);
+
return a->m || s;
+
]], ([ "flag_left":1, "width":2, "precision":3 ]))
+
dnl / : ; ^ _ > hasn't been tested test_eval_error(return sprintf("%d");) test_any_equal([[ class A { object true = Val.true; object false = Val.false; object null = Val.null; }; object a = A();