tree-sitter-d2/bindings/go/binding_test.go

16 lines
313 B
Go
Raw Permalink Normal View History

2024-07-12 20:36:24 +03:00
package tree_sitter_d2_test
import (
"testing"
tree_sitter "github.com/smacker/go-tree-sitter"
"github.com/tree-sitter/tree-sitter-d2"
)
func TestCanLoadGrammar(t *testing.T) {
language := tree_sitter.NewLanguage(tree_sitter_d2.Language())
if language == nil {
t.Errorf("Error loading D2 grammar")
}
}