File: test_binding.py

package info (click to toggle)
tree-sitter-asm 0.24.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 464 kB
  • sloc: ansic: 5,078; javascript: 149; makefile: 101; python: 78; lisp: 51; cpp: 14; sh: 9
file content (11 lines) | stat: -rw-r--r-- 287 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
from unittest import TestCase

import tree_sitter, tree_sitter_asm


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