github.com/gophergala2016/cmd-go-js@v0.0.0-20160421080227-24a7748a7d62/cmd/go/testdata/src/xtestonly/f_test.go (about) 1 package xtestonly_test 2 3 import ( 4 "testing" 5 "xtestonly" 6 ) 7 8 func TestF(t *testing.T) { 9 if x := xtestonly.F(); x != 42 { 10 t.Errorf("f.F() = %d, want 42", x) 11 } 12 }