fix tests
This commit is contained in:
parent
d51392fe8a
commit
a647ed6d43
@ -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"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user