all repos — emoji @ 0235a1371768f43c7c89286e0881464088241b54

A minimalistic emoji package for Go (golang)

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}