summaryrefslogtreecommitdiffstats
path: root/client/go/cmd/version_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go/cmd/version_test.go')
-rw-r--r--client/go/cmd/version_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/go/cmd/version_test.go b/client/go/cmd/version_test.go
new file mode 100644
index 00000000000..02303a08e21
--- /dev/null
+++ b/client/go/cmd/version_test.go
@@ -0,0 +1,11 @@
+package cmd
+
+import (
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestVersion(t *testing.T) {
+ assert.Equal(t, "vespa version 0.0.0-devel\n", execute(command{args: []string{"version"}}, t, nil))
+}