Class skill injection now points to authored entries

This commit is contained in:
2026-05-14 09:29:55 +02:00
parent 18066ee0dd
commit d61ab33aa4
2 changed files with 69 additions and 16 deletions
+23
View File
@@ -818,6 +818,29 @@ func TestBuildNativeExpandsClassesFeatClassskillsFilter(t *testing.T) {
}
}
func TestResolveCanonicalDatasetKeyMatchesMasterfeatAliases(t *testing.T) {
keyToID := map[string]int{
"masterfeats:skill_focus": 4,
"masterfeats:greater_skill_focus": 15,
"masterfeats:weapon_focus": 1,
"masterfeats:greater_weapon_specialization": 11,
}
cases := map[string]string{
"masterfeats:skillfocus": "masterfeats:skill_focus",
"masterfeats:greaterskillfocus": "masterfeats:greater_skill_focus",
"masterfeats:weaponfocus": "masterfeats:weapon_focus",
"masterfeats:greaterweaponspecialization": "masterfeats:greater_weapon_specialization",
"masterfeats:skill_focus": "masterfeats:skill_focus",
}
for input, want := range cases {
if got := resolveCanonicalDatasetKey(input, keyToID); got != want {
t.Fatalf("resolveCanonicalDatasetKey(%q) = %q, want %q", input, got, want)
}
}
}
func TestValidateProjectRejectsLegacyAuthoredTLKModules(t *testing.T) {
root := testProjectRoot(t)
mkdirAll(t, filepath.Join(root, "topdata", "data", "feat"))