Finish porting over the walk test.
This commit is contained in:
parent
9c414d4d06
commit
05527377c4
@ -458,6 +458,26 @@ mod tests {
|
|||||||
.unwrap(),
|
.unwrap(),
|
||||||
"kitty".to_owned()
|
"kitty".to_owned()
|
||||||
);
|
);
|
||||||
|
assert_eq!(
|
||||||
|
new_walk_path(
|
||||||
|
&vec![&number_context as &dyn ContextElement],
|
||||||
|
&vec!["tiger"]
|
||||||
|
)
|
||||||
|
.unwrap()
|
||||||
|
.render(&Vec::new())
|
||||||
|
.unwrap(),
|
||||||
|
"3".to_owned()
|
||||||
|
);
|
||||||
|
assert_eq!(
|
||||||
|
new_walk_path(
|
||||||
|
&vec![&deep_context as &dyn ContextElement],
|
||||||
|
&vec!["tiger", "food"]
|
||||||
|
)
|
||||||
|
.unwrap()
|
||||||
|
.render(&Vec::new())
|
||||||
|
.unwrap(),
|
||||||
|
"people".to_owned()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
Reference in New Issue
Block a user