Finish porting over the walk test.

This commit is contained in:
Tom Alexander 2020-05-05 20:38:42 -04:00
parent 9c414d4d06
commit 05527377c4
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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]