Skip to content

Commit

Permalink
Add the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ks888 committed Apr 21, 2022
1 parent 6d7fb27 commit 4eee720
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simplejson/tests/test_scanstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def _test_scanstring(self, scanstring):
self.assertRaises(ValueError,
scanstring, '\\ud834\\x0123"', 0, None, True)

self.assertRaises(json.JSONDecodeError, scanstring, "\\u-123", 0, None, True)

def test_issue3623(self):
self.assertRaises(ValueError, json.decoder.scanstring, "xxx", 1,
"xxx")
Expand Down

0 comments on commit 4eee720

Please sign in to comment.