Skip to content

Commit

Permalink
test added
Browse files Browse the repository at this point in the history
  • Loading branch information
marsninja committed Sep 17, 2023
1 parent cdb9443 commit f47a5cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
"""This is a docstring"""
with entry { print("hello"); }
8 changes: 8 additions & 0 deletions jaclang/jac/tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ def test_parsing_keyword_escape(self) -> None:
self.assertFalse(prse.errors_had)
self.assertIn("'name': 'KWESC_NAME', 'value': 'walker'", str(output.to_dict()))

def test_no_mod_doc(self) -> None:
"""Basic test for parsing."""
lex = JacLexer(
mod_path="mod_doc_test.jac", input_ir=self.load_fixture("mod_doc_test.jac")
).ir
prse = JacParser(mod_path="mod_doc_test.jac", input_ir=lex)
self.assertFalse(prse.errors_had)

def test_parsing_jac_cli(self) -> None:
"""Basic test for parsing."""
lex = JacLexer(
Expand Down

0 comments on commit f47a5cf

Please sign in to comment.