pike.git
/
src
/
testsuite.in
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/testsuite.in:8126:
test_eq("45954944846776", [[ (string)array_sscanf("01234567012345670", "%i")[0] ]]) test_eq("11", [[ (string)array_sscanf("1011", "%b")[0] ]]) test_eq("1125968643114208", [[ (string)array_sscanf("100000000000001000000000001000000000100010011100000", "%b")[0] ]]) test_eq("11", [[ (string)array_sscanf("0b1011", "%i")[0] ]]) test_eq("1125968643114208", [[ (string)array_sscanf("0b100000000000001000000000001000000000100010011100000", "%i")[0] ]]) test_eq("-12345678901234567890", [[ (string)array_sscanf("-12345678901234567890", "%d")[0] ]]) test_eq("-1375488932614371410344080",
-
[[ (string)array_sscanf("-123456789F01234567890", "%x")[0] ]])
+
[[ (string)
8.0::
array_sscanf("-123456789F01234567890", "%x")[0] ]])
+
test_eq(({}),
+
[[ array_sscanf("-123456789F01234567890", "%x") ]])
test_eq("-1375488932614371410344080", [[ (string)array_sscanf("-0x123456789F01234567890","%i")[0] ]]) test_eq("-45954944846776",
-
[[ (string)array_sscanf("-1234567012345670", "%o")[0] ]])
+
[[ (string)
8.0::
array_sscanf("-1234567012345670", "%o")[0] ]])
+
test_eq(({}),
+
[[ array_sscanf("-1234567012345670", "%o") ]])
test_eq("-45954944846776", [[ (string)array_sscanf("-01234567012345670", "%i")[0] ]])
-
test_eq("-11", [[ (string)array_sscanf("-1011", "%b")[0] ]])
-
test_eq("-1125968643114208", [[ (string)array_sscanf("-100000000000001000000000001000000000100010011100000", "%b")[0] ]])
+
test_eq("-11", [[ (string)
8.0::
array_sscanf("-1011", "%b")[0] ]])
+
test_eq(
({}), [[ array_sscanf(
"-
1011", "%b") ]])
+
test_eq("-
1125968643114208",
+
[[ (string)
8.0::
array_sscanf("-100000000000001000000000001000000000100010011100000", "%b")[0] ]])
test_eq("-11", [[ (string)array_sscanf("-0b1011", "%i")[0] ]]) test_eq("-1125968643114208", [[ (string)array_sscanf("-0b100000000000001000000000001000000000100010011100000", "%i")[0] ]]) test_eq([[ sprintf("%x", @array_sscanf("\0\0\0\0\1\2\3\4", "%4c")) ]], "0") test_eq([[ sprintf("%x", @array_sscanf("\0\0\0\0\1\2\3\4", "%8c")) ]], "1020304") test_eq([[ sprintf("%08x", @array_sscanf("\0\0\0\0\1\2\3\4", "%8c")) ]], "01020304") test_eq([[ sprintf("%08x", @array_sscanf("\0\0\0\5\1\2\3\4", "%8c")) ]], "501020304") test_eq([[ sprintf("%08x", @array_sscanf("\0\0\6\5\1\2\3\4", "%8c")) ]], "60501020304") test_eq([[ sprintf("%08x", @array_sscanf("\0\7\6\5\1\2\3\4", "%8c")) ]], "7060501020304") test_eq([[ sprintf("%08x", @array_sscanf("8\7\6\5\1\2\3\4", "%8c")) ]], "3807060501020304")