directive: compiles now, test structure still in progress

This commit is contained in:
Branden J Brown 2024-10-15 18:35:41 -04:00
parent bf1eaf7ea3
commit 3fd74b7fd5
1 changed files with 3 additions and 3 deletions

View File

@ -281,9 +281,9 @@ mod tests {
("speech", Type::Speech), ("speech", Type::Speech),
("character", Type::Character), ("character", Type::Character),
("duration", Type::Duration), ("duration", Type::Duration),
("scene", Type::Asset { tags: ["scene"] }), ("scene", Type::Asset { tags: Vec::from(["scene"].map(String::from)) }),
("background", Type::Asset { tags: ["background"] }), ("background", Type::Asset { tags: Vec::from(["background"].map(String::from)) }),
("stage position", Type::Enum(["close", "left third", "right third", "left", "center", "right", "far left", "mid left", "mid right", "far right", "far"])), ("stage position", Type::Enum(Vec::from(["close", "left third", "right third", "left", "center", "right", "far left", "mid left", "mid right", "far right", "far"].map(String::from)))),
].map(|(k, v)| (k.into(), v))), ].map(|(k, v)| (k.into(), v))),
directives: BTreeMap::from([ directives: BTreeMap::from([
("page", Directive { ("page", Directive {