File: test_binding.py

package info (click to toggle)
tree-sitter-yaml 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,212 kB
  • sloc: ansic: 45,252; javascript: 702; makefile: 108; python: 94; lisp: 65; cpp: 13; sh: 9
file content (12 lines) | stat: -rw-r--r-- 314 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
from unittest import TestCase

from tree_sitter import Language, Parser
import tree_sitter_yaml


class TestLanguage(TestCase):
    def test_can_load_grammar(self):
        try:
            Parser(Language(tree_sitter_yaml.language()))
        except Exception:
            self.fail("Error loading YAML grammar")