You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
277 B

from unittest import TestCase
import tree_sitter, tree_sitter_c
class TestLanguage(TestCase):
def test_can_load_grammar(self):
try:
Parser(Language(tree_sitter_c.language()))
except Exception:
self.fail("Error loading C grammar")