diff options
Diffstat (limited to 'base_workspace/examples/go/lib1/lib1_test.go')
-rw-r--r-- | base_workspace/examples/go/lib1/lib1_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/base_workspace/examples/go/lib1/lib1_test.go b/base_workspace/examples/go/lib1/lib1_test.go new file mode 100644 index 0000000000..8eb88a0aca --- /dev/null +++ b/base_workspace/examples/go/lib1/lib1_test.go @@ -0,0 +1,14 @@ +package lib1 + +import ( + "testing" +) + +func TestFib(t *testing.T) { + got := Fib(5) + want := 8 + + if got != want { + t.Fatalf("got %d want %d", got, want) + } +} |