File: test_binding.py

package info (click to toggle)
tree-sitter-lua 0.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: ansic: 13,368; javascript: 457; lisp: 229; makefile: 106; python: 102; cpp: 13; sh: 9
file content (12 lines) | stat: -rw-r--r-- 293 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from unittest import TestCase

import tree_sitter
import tree_sitter_lua


class TestLanguage(TestCase):
    def test_can_load_grammar(self):
        try:
            tree_sitter.Language(tree_sitter_lua.language())
        except Exception:
            self.fail("Error loading Lua grammar")