feat: add semantic tackle glyphs

This commit is contained in:
ik
2026-09-12 15:30:40 +07:00
parent c3e847c249
commit 80d534d549
12 changed files with 59 additions and 6 deletions
+9
View File
@@ -3,6 +3,7 @@ import test from "node:test";
import { activityLevel, plural } from "../../src/lib/presentation.ts";
import { fishVisualFamily } from "../../src/lib/fish-visuals.ts";
import { tackleVisualKind, tackleVisualTone } from "../../src/lib/tackle-visuals.ts";
test("activity levels share one complete 0-100 scale", () => {
assert.deepEqual(
@@ -25,3 +26,11 @@ test("fish visual families follow body type instead of a name hash", () => {
["pike", "salmonid", "cyprinid", "perch", "catfish", "eel", "flatfish", "marine", "generic"],
);
});
test("tackle glyphs only infer a type from explicit name terms", () => {
assert.deepEqual(
["Spiker #2", "Minnow 80F", "Salmon T1 Shad", "Клубничный бойл", "Червь", "Карповый монтаж", "Model 42", null].map(tackleVisualKind),
["spinner", "wobbler", "soft", "boilie", "worm", "rig", "unknown", "unknown"],
);
assert.equal(tackleVisualTone("Spiker #2"), tackleVisualTone("spiker #2"));
});