Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
672caca854 |
No files matched your search
@@ -24,6 +24,11 @@ var categories = []Category{
|
||||
{ID: "😠", Label: "Angry"},
|
||||
{ID: "😁", Label: "Beaming"},
|
||||
{ID: "😘", Label: "Blowing kiss"},
|
||||
{ID: "💏", Label: "Kiss"},
|
||||
{ID: "💋", Label: "Kiss mark"},
|
||||
{ID: "😗", Label: "Kissing face"},
|
||||
{ID: "😚", Label: "Kissing face with closed eyes"},
|
||||
{ID: "😙", Label: "Kissing face with smiling eyes"},
|
||||
{ID: "😎", Label: "Cool"},
|
||||
{ID: "😭", Label: "Crying"},
|
||||
{ID: "😈", Label: "Devil"},
|
||||
|
||||
+25
-1
@@ -30,11 +30,35 @@ func TestCatalogUniqueAndComplete(t *testing.T) {
|
||||
seen[id] = true
|
||||
}
|
||||
}
|
||||
if len(seen) != 501 || !seen["🧑🚀"] || !seen["🐐"] || !seen["🎉"] {
|
||||
if len(seen) != 506 || !seen["🧑🚀"] || !seen["🐐"] || !seen["🎉"] {
|
||||
t.Fatalf("catalog missing entries: %d", len(seen))
|
||||
}
|
||||
}
|
||||
|
||||
func TestKissChoices(t *testing.T) {
|
||||
want := map[string]string{
|
||||
"😘": "Blowing kiss",
|
||||
"💏": "Kiss",
|
||||
"💋": "Kiss mark",
|
||||
"😗": "Kissing face",
|
||||
"😚": "Kissing face with closed eyes",
|
||||
"😙": "Kissing face with smiling eyes",
|
||||
}
|
||||
for _, category := range Categories() {
|
||||
for _, entry := range category.Entries {
|
||||
if label, ok := want[entry.ID]; ok {
|
||||
if entry.Label != label || category.ID != "people" {
|
||||
t.Fatalf("unexpected kiss choice: %#v in %q", entry, category.ID)
|
||||
}
|
||||
delete(want, entry.ID)
|
||||
}
|
||||
}
|
||||
}
|
||||
if len(want) != 0 {
|
||||
t.Fatalf("missing kiss choices: %v", want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCategoriesReturnIndependentSlices(t *testing.T) {
|
||||
first := Categories()
|
||||
first[0].ID = "changed"
|
||||
|
||||
Reference in new issue
Block a user