File: map_test.go

package info (click to toggle)
golang-github-enescakir-emoji 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 472 kB
  • sloc: makefile: 3
file content (14 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package emoji

import (
	"testing"
)

func TestEmojiMap(t *testing.T) {
	for name, code := range emojiMap {
		got := Parse(name)
		if got != code {
			t.Fatalf("test case %q fail: got: %v, expected: %v", name, got, code)
		}
	}
}