diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/lib.rs b/tests/lib.rs index fb9c98d..de19f5b 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -5,6 +5,7 @@ extern crate modelica_parser; use std::path::Path; use modelthing::*; +use modelica_parser::*; #[test] @@ -32,7 +33,7 @@ fn test_search_models() { } #[test] -fn test substitute_with() { +fn test_substitute_with() { use modelica_parser::Expr::*; let y = BinExpr(BinOperator::Add, @@ -43,7 +44,7 @@ fn test substitute_with() { Box::new(Ident("z".to_string()))); assert_eq!(z, - substitute_with(&y, - Ident("y".to_string()), - Ident("z".to_string()))); + modelica_model::substitute_with(&y, + &Ident("y".to_string()), + &Ident("z".to_string()))); } |