Skip to content

Commit

Permalink
refs #206 #208 Extended empty regex match.
Browse files Browse the repository at this point in the history
  • Loading branch information
igordejanovic committed Sep 19, 2019
1 parent 0781cf3 commit 83e88d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/functional/test_textx_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ def test_empty_strmatch():

def test_empty_regexmatch():
"""
Test emtpy regex match.
Test empty regex match.
Note, there must be some regex-code between slashes or else it will be
parsed as line comment, e.g. "()".
"""
Expand All @@ -830,6 +830,12 @@ def test_empty_regexmatch():
model = mm.model_from_str('a')
assert model

grammar = """
Rule: first=// 'a';
"""
with pytest.raises(TextXSyntaxError):
metamodel_from_str(grammar)


def test_default_attribute_values():
"""
Expand Down

0 comments on commit 83e88d5

Please sign in to comment.