pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2010-11-21
2010-11-21 12:42:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e02b4fa8dc2e156d7cb182aa5ab6b0f5ebed143d (
2
lines) (+
2
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
Added the !-modifier for sscanf. Fixes [LysLysKOM 18812886].
7704:
test_equal([[ array_sscanf("hej","%s") ]], [[ ({ "hej" }) ]]) test_equal([[ array_sscanf("hej","%s%n") ]], [[ ({ "hej", 3 }) ]])
+
test_equal([[ array_sscanf("hejhopp", "%*!3s%s%n") ]], [[ ({ "hopp", 4 }) ]])
test_eval_error([[ function f=array_sscanf; f("hej","%s% ") ]]) test_equal([[ array_sscanf("\x304b\x3066\x3044\x308a\x3087\x3046\x308a", "%[^\x3042\x3044\x3046\x3048\x304a]")[0] ]],