aboutsummaryrefslogtreecommitdiff
path: root/bindings/go/binding_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/go/binding_test.go')
-rw-r--r--bindings/go/binding_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/bindings/go/binding_test.go b/bindings/go/binding_test.go
new file mode 100644
index 0000000..c4efff1
--- /dev/null
+++ b/bindings/go/binding_test.go
@@ -0,0 +1,15 @@
+package tree_sitter_gsp_test
+
+import (
+ "testing"
+
+ tree_sitter "github.com/smacker/go-tree-sitter"
+ "github.com/tree-sitter/tree-sitter-gsp"
+)
+
+func TestCanLoadGrammar(t *testing.T) {
+ language := tree_sitter.NewLanguage(tree_sitter_gsp.Language())
+ if language == nil {
+ t.Errorf("Error loading Gsp grammar")
+ }
+}