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('')