aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2017-01-11 17:19:11 -0800
committerbnewbold <bnewbold@robocracy.org>2017-01-11 17:19:11 -0800
commitf9780935165b9535288bdac4e6b1171278fc5191 (patch)
tree6cec27a8e54d3e1deb48ef4f40fd19021cc034b4
parentf2c1f1c13772145acaecb1ebf9b4cafcacb98131 (diff)
downloadmodelthing-f9780935165b9535288bdac4e6b1171278fc5191.tar.gz
modelthing-f9780935165b9535288bdac4e6b1171278fc5191.zip
re-export modelica_parser (and fix tests)
-rw-r--r--src/lib.rs2
-rw-r--r--tests/lib.rs5
2 files changed, 3 insertions, 4 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 24b1ee7..4c32d66 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -6,7 +6,7 @@ extern crate log;
extern crate error_chain;
extern crate toml;
-extern crate modelica_parser;
+pub extern crate modelica_parser;
pub mod modelica_model;
pub mod transpile_scheme;
diff --git a/tests/lib.rs b/tests/lib.rs
index 8899e0b..7822f62 100644
--- a/tests/lib.rs
+++ b/tests/lib.rs
@@ -1,11 +1,10 @@
extern crate modelthing;
-extern crate modelica_parser;
use std::path::Path;
use modelthing::*;
-use modelica_parser::*;
+use modelthing::modelica_parser::*;
#[test]
@@ -20,7 +19,7 @@ fn test_search_models() {
#[test]
fn test_substitute_with() {
- use modelica_parser::Expr::*;
+ use modelthing::modelica_parser::Expr::*;
let y = BinExpr(BinOperator::Add,
Box::new(Ident("y".to_string())),