github.com/moontrade/nogc@v0.1.7/collections/rhmap/map_test.go (about) 1 package rhmap 2 3 import ( 4 . "github.com/moontrade/nogc" 5 "testing" 6 ) 7 8 func TestMap(t *testing.T) { 9 m := NewMap(16) 10 11 key := BytesOfString("MYID") 12 value := BytesOfString("MYVALUE") 13 14 m.Set(key, value) 15 16 v, ok := m.Get(key) 17 if !ok { 18 19 } 20 21 println(key.String(), v.String()) 22 }