From 91db9145becea124e5e3307fc772885726c88cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=ADle=20Ekaterin=20Liszka?= Date: Fri, 12 Jan 2024 23:37:12 -0800 Subject: [PATCH] tests/test_invalid.py: add some more invalids --- tests/test_invalid.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_invalid.py b/tests/test_invalid.py index 2391b0e..9d88324 100644 --- a/tests/test_invalid.py +++ b/tests/test_invalid.py @@ -31,3 +31,13 @@ def test_lone_lbrace(): def test_lone_braces(): with pytest.raises(ParseException): loads_xbc('{}') + +def test_lone_semi(): + with pytest.raises(ParseException): + loads_xbc(';') + +def test_empty(): + with pytest.raises(ParseException): + loads_xbc('\n') + with pytest.raises(ParseException): + loads_xbc('')