pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:13371:
test_eq(sprintf("%[*]s %s",2,"a","b"),"b a") test_eq(sprintf("%[1]s %s %[2]s %s","b","a","r"),"a b r a") test_do(catch(sprintf("%d-" *101, @allocate(101)))) test_eq(sprintf("%O", "a\nb"),"\"a\\n\"\n\"b\"") test_eq(sprintf("%O", "a\0b"),"\"a\\0b\"") test_eq(sprintf("%O", "a\0""0"),"\"a\\0\"\"0\"")
-
test_eq(sprintf_76("%O", "a\nb"),"\"a\\nb\"")
-
test_eq(sprintf_76("%O", "a\0b"),"\"a\\0b\"")
-
test_eq(sprintf_76("%O", "a\0""0"),"\"a\\0\"\"0\"")
-
+
test_eq(sprintf("%q", "a\nb"),"\"a\\nb\"") test_eq(sprintf("%q", "a\0b"),"\"a\\0b\"") test_eq(sprintf("%q", "a\0""0"),"\"a\\u00000\"") test_eq(sprintf("%q", "\177\177""0"),"\"\\177\\u007f0\"") test_eq(sprintf("%H", ""),"\0") test_eq(sprintf("%H", "hello"),"\5hello") test_eval_error(return sprintf("%0H", "")) test_eval_error(return sprintf("%0H", "hello"))