map_test.go (view raw)
1package emoji 2 3import ( 4 "testing" 5) 6 7func TestEmojiMap(t *testing.T) { 8 for name, code := range emojiMap { 9 got := Parse(name) 10 if got != code { 11 t.Fatalf("test case %q fail: got: %v, expected: %v", name, got, code) 12 } 13 } 14}