mirror of
https://github.com/github/codeql.git
synced 2026-05-21 22:57:11 +02:00
16 lines
344 B
Go
16 lines
344 B
Go
package tree_sitter_tsg_python_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
tree_sitter "github.com/smacker/go-tree-sitter"
|
|
"github.com/tree-sitter/tree-sitter-tsg_python"
|
|
)
|
|
|
|
func TestCanLoadGrammar(t *testing.T) {
|
|
language := tree_sitter.NewLanguage(tree_sitter_tsg_python.Language())
|
|
if language == nil {
|
|
t.Errorf("Error loading TsgPython grammar")
|
|
}
|
|
}
|