1 Commits
Author SHA1 Message Date
Storm Dragon 672caca854 Add kiss emoji choices to shared catalog 2026-11-11 23:37:17 -05:00
2 changed files with 30 additions and 1 deletions

No files matched your search

+5
View File
@@ -24,6 +24,11 @@ var categories = []Category{
{ID: "😠", Label: "Angry"}, {ID: "😠", Label: "Angry"},
{ID: "😁", Label: "Beaming"}, {ID: "😁", Label: "Beaming"},
{ID: "😘", Label: "Blowing kiss"}, {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: "Cool"},
{ID: "😭", Label: "Crying"}, {ID: "😭", Label: "Crying"},
{ID: "😈", Label: "Devil"}, {ID: "😈", Label: "Devil"},
+25 -1
View File
@@ -30,11 +30,35 @@ func TestCatalogUniqueAndComplete(t *testing.T) {
seen[id] = true 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)) 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) { func TestCategoriesReturnIndependentSlices(t *testing.T) {
first := Categories() first := Categories()
first[0].ID = "changed" first[0].ID = "changed"