github.com/goplus/gop@v1.2.6/printer/_testdata/14-Using-goplus-in-Go/foo/foo_test.gop (about)

     1  package foo
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestReverseMap(t *testing.T) {
     8  	out := ReverseMap({"a": 1})
     9  	if len(out) != 1 || out[1] != "a" {
    10  		t.Fatal("ReverseMap failed:", out)
    11  	}
    12  }