Repository URL to install this package:
Version:
1.3.7-1 ▾
|
package foo_test
import (
"testing"
"github.com/goplus/gop/tutorial/14-Using-goplus-in-Go/foo"
)
func TestReverseMap(t *testing.T) {
out := foo.ReverseMap({"b": 2})
if len(out) != 1 || out[2] != "b" {
t.Fatal("ReverseMap failed:", out)
}
}