diff options
| author | bnewbold <bnewbold@robocracy.org> | 2016-12-26 01:13:35 -0800 | 
|---|---|---|
| committer | bnewbold <bnewbold@robocracy.org> | 2016-12-26 01:14:32 -0800 | 
| commit | c12c61cb0f34df3421b9e967e74c0603f9e44a0f (patch) | |
| tree | dcff0b8665040aaa53c5897c7e74e940ded5d6c6 /tests | |
| parent | 7168804b8a555f1ecfb11d595c63384fda7a8f6f (diff) | |
| download | modelthing-c12c61cb0f34df3421b9e967e74c0603f9e44a0f.tar.gz modelthing-c12c61cb0f34df3421b9e967e74c0603f9e44a0f.zip | |
fix tests
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())));  } | 
