Skip to content

Commit 6b995a2

Browse files
committed
Some more jsonb number tests
Found during coverage testing
1 parent dbaeda1 commit 6b995a2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apsw/tests/jsonb.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ def testBadContent(self):
823823
# not numbers
824824
for number in (
825825
"",
826+
"-",
826827
"--1",
827828
"1-2",
828829
"0.-1",
@@ -831,6 +832,9 @@ def testBadContent(self):
831832
"+1.-2",
832833
"1e-2-",
833834
"1e++2",
835+
"1e+-2",
836+
"1e-+2",
837+
"1e--2",
834838
"1.2.3",
835839
"1.2E3.4",
836840
"1.2E2E3",
@@ -842,6 +846,7 @@ def testBadContent(self):
842846
"0x\x07",
843847
"0x\xa7",
844848
"0x",
849+
"x123",
845850
"+1",
846851
"+1.1",
847852
"1+1",
@@ -855,6 +860,7 @@ def testBadContent(self):
855860
"\r\n",
856861
"1.2\r\n",
857862
"E3",
863+
"3E",
858864
"00001",
859865
"+00001",
860866
"-00001",

0 commit comments

Comments
 (0)