File: test_binding.py

package info (click to toggle)
tree-sitter-ini 1.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 356 kB
  • sloc: ansic: 509; makefile: 117; python: 62; javascript: 46; cpp: 14; lisp: 11; sh: 9
file content (11 lines) | stat: -rw-r--r-- 287 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
from unittest import TestCase

import tree_sitter, tree_sitter_ini


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