diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-14 19:59:18 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <jj@r.bdr.sh> | 2025-12-14 19:59:33 +0100 |
| commit | 9b7bda28db0200b628e5f6eb7021a5a717db2e73 (patch) | |
| tree | 2f477b0fe308da3554fbd0ab807c4c4725715311 /bindings/go/binding_test.go | |
Initial grammar
Diffstat (limited to 'bindings/go/binding_test.go')
| -rw-r--r-- | bindings/go/binding_test.go | 15 |
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..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") + } +} |