pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
1999-11-04
1999-11-04 20:04:07 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
e7a172fb9b0617aebf774e2f4761cf91515205a7 (
13
lines) (+
12
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
fixed sscanf sets for wide strings
Rev: src/opcodes.c:1.64
Rev: src/testsuite.in:1.222
1:
-
test_true([["$Id: testsuite.in,v 1.
221
1999/11/
01
16
:
57
:
43
grubba
Exp $"]])
+
test_true([["$Id: testsuite.in,v 1.
222
1999/11/
04
20
:
04
:
07
hubbe
Exp $"]])
cond([[all_constants()->_verify_internals]], [[
1766:
test_eq([[ array_sscanf(sprintf("%4c",16909060),"%4c")[0] ]],16909060) test_eq([[ array_sscanf(sprintf("%-4c",16909060),"%-4c")[0] ]],16909060)
+
test_equal([[array_sscanf("\1000\1001\2000","%[\1000-\1111]%s")]],
+
[[ ({ "\1000\1001", "\2000" }) ]])
+
+
test_equal([[array_sscanf("foo\1000\1001\1111\1110\2000","%s%[\1000-\1111]%s")]],
+
[[ ({ "foo", "\1000\1001\1111\1110", "\2000" }) ]])
+
+
test_equal([[array_sscanf("\2000\1000\1111\1001\1110foo","%s%[\1000-\1111]%s")]],
+
[[ ({ "\2000", "\1000\1111\1001\1110", "foo"}) ]])
+
+
// Basics test_true(1) test_true("")