fix tests

This commit is contained in:
Tom Alexander 2020-04-12 18:31:27 -04:00
parent d51392fe8a
commit a647ed6d43
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 8 additions and 3 deletions

View File

@ -177,10 +177,15 @@ mod tests {
.iter()
.cloned()
.collect();
assert_eq!(walk_path(&context, &vec!["cat"]).render(), "kitty");
assert_eq!(walk_path(&number_context, &vec!["tiger"]).render(), "3");
assert_eq!(walk_path(&context, &vec!["cat"]).unwrap().render(), "kitty");
assert_eq!(
walk_path(&deep_context, &vec!["tiger", "food"]).render(),
walk_path(&number_context, &vec!["tiger"]).unwrap().render(),
"3"
);
assert_eq!(
walk_path(&deep_context, &vec!["tiger", "food"])
.unwrap()
.render(),
"people"
);
}