Class skill injection now points to authored entries
This commit is contained in:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user