1 2 3 4 5 6 7 8 9 10
package dylib import "testing" func TestFoo(t *testing.T) { want := 42 if got := Foo(); got != want { t.Errorf("got %d ; want %d", got, want) } }