aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/go/lib/lib_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'examples/go/lib/lib_test.go')
-rw-r--r--examples/go/lib/lib_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/go/lib/lib_test.go b/examples/go/lib/lib_test.go
new file mode 100644
index 0000000000..e8a9f1b707
--- /dev/null
+++ b/examples/go/lib/lib_test.go
@@ -0,0 +1,11 @@
+package lib
+
+import (
+ "testing"
+)
+
+func TestMeaning(t *testing.T) {
+ if m := Meaning(); m != 42 {
+ t.Errorf("got %d, want 42", m)
+ }
+}