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

View File

@ -177,10 +177,15 @@ mod tests {
.iter() .iter()
.cloned() .cloned()
.collect(); .collect();
assert_eq!(walk_path(&context, &vec!["cat"]).render(), "kitty"); assert_eq!(walk_path(&context, &vec!["cat"]).unwrap().render(), "kitty");
assert_eq!(walk_path(&number_context, &vec!["tiger"]).render(), "3");
assert_eq!( 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" "people"
); );
} }