Initial commit
This commit is contained in:
12
bindings/python/tests/test_binding.py
generated
Normal file
12
bindings/python/tests/test_binding.py
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from tree_sitter import Language, Parser
|
||||
import tree_sitter_mc
|
||||
|
||||
|
||||
class TestLanguage(TestCase):
|
||||
def test_can_load_grammar(self):
|
||||
try:
|
||||
Parser(Language(tree_sitter_mc.language()))
|
||||
except Exception:
|
||||
self.fail("Error loading MC grammar")
|
||||
Reference in New Issue
Block a user