tree-sitter-jrpc/bindings/python/tests/test_binding.py

12 lines
290 B
Python
Raw Normal View History

2024-10-01 21:48:00 +00:00
from unittest import TestCase
import tree_sitter, tree_sitter_jrpc
class TestLanguage(TestCase):
def test_can_load_grammar(self):
try:
tree_sitter.Language(tree_sitter_jrpc.language())
except Exception:
self.fail("Error loading Jrpc grammar")