Files
tree-sitter-jhcl/bindings/python/tests/test_binding.py

13 lines
293 B
Python
Raw Normal View History

2025-05-16 19:20:03 +03:00
from unittest import TestCase
import tree_sitter
import tree_sitter_hcl
class TestLanguage(TestCase):
def test_can_load_grammar(self):
try:
tree_sitter.Language(tree_sitter_hcl.language())
except Exception:
self.fail("Error loading HCL grammar")