From 9b7bda28db0200b628e5f6eb7021a5a717db2e73 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 14 Dec 2025 19:59:18 +0100 Subject: Initial grammar --- bindings/go/binding_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bindings/go/binding_test.go (limited to 'bindings/go/binding_test.go') diff --git a/bindings/go/binding_test.go b/bindings/go/binding_test.go new file mode 100644 index 0000000..911fd9b --- /dev/null +++ b/bindings/go/binding_test.go @@ -0,0 +1,15 @@ +package tree_sitter_wmap_test + +import ( + "testing" + + tree_sitter "github.com/tree-sitter/go-tree-sitter" + tree_sitter_wmap "git.sr.ht/~rbdr/tree-sitter-wmap/bindings/go" +) + +func TestCanLoadGrammar(t *testing.T) { + language := tree_sitter.NewLanguage(tree_sitter_wmap.Language()) + if language == nil { + t.Errorf("Error loading Wmap grammar") + } +} -- cgit