Retain selected glossary instructions
This commit is contained in:
@@ -38,6 +38,7 @@ glossary_collections:
|
||||
- path: shared/extra.yml
|
||||
required: true
|
||||
party:
|
||||
instruction: Use established names.
|
||||
entries:
|
||||
- id: hero
|
||||
name: Original
|
||||
@@ -54,6 +55,9 @@ party:
|
||||
t.Fatalf("%v: %+v", err, err.(*ck.LoadError).Diagnostics())
|
||||
}
|
||||
party := result.Config.Application.GlossaryCollections["party"].Entries
|
||||
if got := result.Config.Application.GlossaryCollections["party"].Instruction; got != "Use established names." {
|
||||
t.Fatalf("instruction not inherited: %q", got)
|
||||
}
|
||||
if len(party) != 2 || party[0].Name != "Revised" || len(party[0].Aliases) != 0 || party[1].ID != "other" {
|
||||
t.Fatalf("party=%+v", party)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user