Finish porting over the walk test.
This commit is contained in:
		
							parent
							
								
									9c414d4d06
								
							
						
					
					
						commit
						05527377c4
					
				| @ -458,6 +458,26 @@ mod tests { | ||||
|                 .unwrap(), | ||||
|             "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] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tom Alexander
						Tom Alexander