Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
gop / usr / lib / gop / printer / _testdata / 14-Using-goplus-in-Go / foo / footest_test.gop
Size: Mime:
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)
	}
}