Skip to content

Commit e656c5f

Browse files
committed
Added some test cases that catch a parsing bug.
1 parent f1053e7 commit e656c5f

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed

test/data/test_real_08.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.=4300000001

test/data/test_real_08.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Out of 32-bit integer range, switch to double in 32-bit mode. Length the
2+
// same as UINT_MAX in base 10 and digit less than UINT_MAX's last digit in
3+
// order to catch a bug in the parsing code.
4+
4300000001

test/data/test_real_09.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.=19000000000000000001

test/data/test_real_09.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Out of 64-bit integer range, switch to double in all modes. Length the same
2+
// as ULONG_MAX in base 10 and digit less than ULONG_MAX's last digit in order
3+
// to catch a bug in the parsing code.
4+
19000000000000000001

test/data/test_real_10.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.=-2200000001

test/data/test_real_10.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Out of 32-bit signed integer range, switch to double in all modes. Length
2+
// the same as INT_MIN in base 10 and digit less than INT_MIN's last digit in
3+
// order to catch a bug in the parsing code.
4+
-2200000001

test/data/test_real_11.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.=-9300000000000000001

test/data/test_real_11.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Out of 64-bit signed integer range, switch to double in all modes. Length
2+
// the same as LONG_MIN in base 10 and digit less than LONG_MIN's last digit in
3+
// order to catch a bug in the parsing code.
4+
-9300000000000000001

0 commit comments

Comments
 (0)