Render imported party rosters as canonical inputs

This commit is contained in:
2026-11-17 22:18:57 +00:00
parent 1657c9f65d
commit 05f5607968
10 changed files with 190 additions and 34 deletions

View File

@@ -314,7 +314,11 @@ characters:
if err != nil {
t.Fatalf("ReadFile(prepared party) error = %v", err)
}
if string(contents) != string(partyBytes) || partyPath == cfg.Party.Source.Path {
wantParty, err := partyDocument.YAML()
if err != nil {
t.Fatal(err)
}
if string(contents) != string(wantParty) || partyPath == cfg.Party.Source.Path {
t.Fatalf("prepared party path=%q contents=%q source=%q", partyPath, contents, cfg.Party.Source.Path)
}
}