Prepare resolved documents and autocorrection rules
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user