Skip to content

Commit

Permalink
Add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen authored and jpgrayson committed Jun 19, 2023
1 parent baf9acd commit f613631
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ def test_parse_scope_decl():
assert token.scope.ident == 'foobar'


def test_parse_scope_decl_with_escaped_identifier():
tokens = tokenize(io.BytesIO(b'$scope module \\foo.bar\\ $end'))
token = next(tokens)
assert token.scope.type_.value == 'module'
assert token.scope.ident == 'foo.bar\\'


def test_parse_var_decl():
tokens = tokenize(io.BytesIO(b'$var integer 8 ! foo [17] $end'))
token = next(tokens)
Expand Down

0 comments on commit f613631

Please sign in to comment.