Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test_snuggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def test_masked_arr():


# Parse and syntax error testing.
@pytest.mark.xfail(strict=False, reason="https://github.com/mapbox/snuggs/issues/27")
def test_missing_closing_paren():
with pytest.raises(SyntaxError) as excinfo:
snuggs.eval("(+ 1 2")
Expand All @@ -206,6 +207,7 @@ def test_missing_func():
assert str(excinfo.value) == "'0' is not a function or operator"


@pytest.mark.xfail(strict=False, reason="https://github.com/mapbox/snuggs/issues/27")
def test_missing_func2():
with pytest.raises(SyntaxError) as excinfo:
snuggs.eval("(# 1 2)")
Expand All @@ -221,6 +223,7 @@ def test_undefined_var():
assert str(excinfo.value) == "name 'bogus' is not defined"


@pytest.mark.xfail(strict=False, reason="https://github.com/mapbox/snuggs/issues/27")
def test_bogus_higher_order_func():
with pytest.raises(SyntaxError) as excinfo:
snuggs.eval("((bogus * 2) 2)")
Expand Down