mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
Added some test cases that catch a parsing bug.
This commit is contained in:
parent
f1053e7acb
commit
e656c5fa2d
1
test/data/test_real_08.expected
Normal file
1
test/data/test_real_08.expected
Normal file
@ -0,0 +1 @@
|
||||
.=4300000001
|
4
test/data/test_real_08.json
Normal file
4
test/data/test_real_08.json
Normal file
@ -0,0 +1,4 @@
|
||||
// Out of 32-bit integer range, switch to double in 32-bit mode. Length the
|
||||
// same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
4300000001
|
1
test/data/test_real_09.expected
Normal file
1
test/data/test_real_09.expected
Normal file
@ -0,0 +1 @@
|
||||
.=19000000000000000001
|
4
test/data/test_real_09.json
Normal file
4
test/data/test_real_09.json
Normal file
@ -0,0 +1,4 @@
|
||||
// Out of 64-bit integer range, switch to double in all modes. Length the same
|
||||
// as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order
|
||||
// to catch a bug in the parsing code.
|
||||
19000000000000000001
|
1
test/data/test_real_10.expected
Normal file
1
test/data/test_real_10.expected
Normal file
@ -0,0 +1 @@
|
||||
.=-2200000001
|
4
test/data/test_real_10.json
Normal file
4
test/data/test_real_10.json
Normal file
@ -0,0 +1,4 @@
|
||||
// Out of 32-bit signed integer range, switch to double in all modes. Length
|
||||
// the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
-2200000001
|
1
test/data/test_real_11.expected
Normal file
1
test/data/test_real_11.expected
Normal file
@ -0,0 +1 @@
|
||||
.=-9300000000000000001
|
4
test/data/test_real_11.json
Normal file
4
test/data/test_real_11.json
Normal file
@ -0,0 +1,4 @@
|
||||
// Out of 64-bit signed integer range, switch to double in all modes. Length
|
||||
// the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in
|
||||
// order to catch a bug in the parsing code.
|
||||
-9300000000000000001
|
Loading…
Reference in New Issue
Block a user