diff options
Diffstat (limited to 'bindings/python/tests')
| -rw-r--r-- | bindings/python/tests/test_binding.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bindings/python/tests/test_binding.py b/bindings/python/tests/test_binding.py new file mode 100644 index 0000000..35b3845 --- /dev/null +++ b/bindings/python/tests/test_binding.py @@ -0,0 +1,12 @@ +from unittest import TestCase + +from tree_sitter import Language, Parser +import tree_sitter_wmap + + +class TestLanguage(TestCase): + def test_can_load_grammar(self): + try: + Parser(Language(tree_sitter_wmap.language())) + except Exception: + self.fail("Error loading Wmap grammar") |