Skip to content

Commit

Permalink
Better BLNS test
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Dec 20, 2018
1 parent 0eb580e commit 3fb8b5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file removed data/blns.json.xz
Binary file not shown.
Binary file added data/blns.txt.xz
Binary file not shown.
8 changes: 5 additions & 3 deletions test/test_fixture.py
Expand Up @@ -52,6 +52,8 @@ def test_blns(self):
https://github.com/minimaxir/big-list-of-naughty-strings
"""
val = read_fixture('blns.json.xz')
with self.assertRaises(json.decoder.JSONDecodeError):
_ = orjson.loads(val)
val = read_fixture('blns.txt.xz')
for line in val.split('\n'):
if line and not line.startswith('#'):
with self.assertRaises(json.decoder.JSONDecodeError):
_ = orjson.loads('"' + val + '"')

0 comments on commit 3fb8b5b

Please sign in to comment.