github.com/goplus/gop@v1.2.6/printer/_testdata/14-Using-goplus-in-Go/foo/footest_test.gop (about) 1 package foo_test 2 3 import ( 4 "testing" 5 6 "github.com/goplus/gop/tutorial/14-Using-goplus-in-Go/foo" 7 ) 8 9 func TestReverseMap(t *testing.T) { 10 out := foo.ReverseMap({"b": 2}) 11 if len(out) != 1 || out[2] != "b" { 12 t.Fatal("ReverseMap failed:", out) 13 } 14 }