words: they say the long tail tips the scales

Adds eailed critters and scaly ones. No anole was harmed (it was already
in the list), and the loris was turned away at the door for being
suspiciously tailless.

Removes a word that was misread/misinterpreted and starts a rejection
list in the test suite.

Updates #words

Signed-off-by: James Tucker <james@tailscale.com>
This commit is contained in:
James Tucker
2026-06-04 22:51:30 -07:00
committed by James Tucker
parent e8d169db8d
commit d0b12dac75
3 changed files with 64 additions and 2 deletions
+22 -1
View File
@@ -239,7 +239,6 @@ silverside
banjo
barb
barbel
bangus
banfish
ray
danio
@@ -475,3 +474,25 @@ rattlesnake
armadillo
bonytongue
flops
skink
gharial
viper
adder
taipan
slowworm
sturgeon
krait
copperhead
bushmaster
sidewinder
kingsnake
draco
terrapin
loggerhead
hawksbill
grouper
wrasse
parrotfish
triggerfish
tench
shiner
+34 -1
View File
@@ -453,7 +453,6 @@ silverside
banjo
barb
barbel
bangus
batfish
danio
betta
@@ -799,3 +798,37 @@ komodo
rattlesnake
softshell
bonytongue
thresher
numbat
marten
wolverine
mongoose
sugarglider
ringtail
bongo
klipspringer
chinchilla
nutria
muskrat
fennec
tarsier
sifaka
baboon
mandrill
langur
boar
peccary
duiker
dikdik
impala
chamois
markhor
roadrunner
wagtail
pintail
fantail
sawfish
swordtail
oarfish
newt
olm
+8
View File
@@ -4,10 +4,15 @@
package words
import (
"slices"
"strings"
"testing"
)
var nopes = []string{
"chub", "bangus", "hellbender",
}
func TestWords(t *testing.T) {
test := func(t *testing.T, words []string) {
t.Helper()
@@ -23,6 +28,9 @@ func TestWords(t *testing.T) {
if w == "" || strings.IndexFunc(w, nonASCIILower) != -1 {
t.Errorf("malformed word %q", w)
}
if slices.Contains(nopes, w) {
t.Errorf("word %q has been previously rejected/removed and should not be added", w)
}
}
}
t.Run("tails", func(t *testing.T) { test(t, Tails()) })