feat: add semantic tackle glyphs
This commit is contained in:
@@ -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"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user