Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

589 B
Raw Blame
package messagereaction

import "testing"

func TestReactionLibraryMatchesTheSharedEmojiSet(t *testing.T) {
	if len(reactionIDs) != 1870 {
		t.Fatalf("official Reaction library size=%d want 1870", len(reactionIDs))
	}
	for _, id := range []string{"joy", "ok_hand", "+1", "sweat_smile", "cry", "tada", "heart", "rocket", "eyes", "pray", "fire", "smile"} {
		if !ValidReactionID(id) {
			t.Fatalf("%s is missing from the library", id)
		}
	}
	for _, id := range []string{"", "unicorn", "laugh", "JOY", "joy ", "😂"} {
		if ValidReactionID(id) {
			t.Fatalf("%q was accepted", id)
		}
	}
}