tests/test_invalid.py: add some more invalids

current
Síle Ekaterin Liszka 2024-01-12 23:37:12 -08:00
parent 556c29fd4b
commit 91db9145be
Signed by: VulpineAmethyst
SSH Key Fingerprint: SHA256:VcHwQ6SUfi/p0Csfxe3SabX/TImWER0PhoJqkt+GlmE
1 changed files with 10 additions and 0 deletions

View File

@ -31,3 +31,13 @@ def test_lone_lbrace():
def test_lone_braces(): def test_lone_braces():
with pytest.raises(ParseException): with pytest.raises(ParseException):
loads_xbc('{}') 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('')