File: binding_test.go

package info (click to toggle)
tree-sitter-query 0.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 492 kB
  • sloc: ansic: 6,868; javascript: 136; lisp: 117; makefile: 112; python: 96; cpp: 13; sh: 9
file content (15 lines) | stat: -rw-r--r-- 368 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package tree_sitter_query_test

import (
	"testing"

	tree_sitter "github.com/tree-sitter/go-tree-sitter"
	tree_sitter_query "github.com/tree-sitter-grammars/tree-sitter-query/bindings/go"
)

func TestCanLoadGrammar(t *testing.T) {
	language := tree_sitter.NewLanguage(tree_sitter_query.Language())
	if language == nil {
		t.Errorf("Error loading Query grammar")
	}
}