From c12c61cb0f34df3421b9e967e74c0603f9e44a0f Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 26 Dec 2016 01:13:35 -0800 Subject: fix tests --- tests/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests') 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()))); } -- cgit v1.2.3