Prepare resolved documents and autocorrection rules

This commit is contained in:
2026-11-30 00:31:36 +00:00
parent 5c4ca20b11
commit 4e94b2157b
22 changed files with 197 additions and 335 deletions

View File

@@ -66,6 +66,13 @@ narratio:
if len(again.Inputs.Autocorrect) != tc.rules || (again.Inputs.Glossary != nil) != tc.glossary {
t.Fatalf("snapshot: %s", output)
}
standalone, err := LoadSessionBytesWithOptions("snapshot.yml", output, SessionLoadOptions{})
if err != nil {
t.Fatalf("standalone snapshot: %v\n%s", err, output)
}
if len(standalone.Inputs.Autocorrect) != tc.rules || (standalone.Inputs.Glossary != nil) != tc.glossary {
t.Fatalf("standalone snapshot: %s", output)
}
})
}
output, err := RenderCampaignDocument(&Config{Campaign: campaign})