tree-sitter-omega
aien-dev/tree-sitter-omega
Brought by drakestapleton
tree-sitter-omega / bindings / python / tests / test_binding.py
| 1 | from unittest import TestCase |
| 2 | |
| 3 | from tree_sitter import Language, Parser |
| 4 | import tree_sitter_omega |
| 5 | |
| 6 | |
| 7 | class TestLanguage(TestCase): |
| 8 | def test_can_load_grammar(self): |
| 9 | try: |
| 10 | Parser(Language(tree_sitter_omega.language())) |
| 11 | except Exception: |
| 12 | self.fail("Error loading Omega grammar") |