File: test_binding.py

package info (click to toggle)
tree-sitter-c 0.24.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,876 kB
  • sloc: ansic: 124,187; javascript: 1,267; makefile: 101; python: 95; lisp: 76; cpp: 14; sh: 9
file content (11 lines) | stat: -rw-r--r-- 281 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from unittest import TestCase

import tree_sitter, tree_sitter_c


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