summaryrefslogtreecommitdiff
path: root/dhall/tests/common/mod.rs
diff options
context:
space:
mode:
authorNadrieril2019-04-06 17:48:13 +0200
committerNadrieril2019-04-06 17:48:13 +0200
commit9741e3280ed03920732430e7994e1f8482c9ddd6 (patch)
treefc98320f9fa914994d6ab25a140adb411f90c82d /dhall/tests/common/mod.rs
parent727c5219c9af55df3e61fb372fa2fadecdd15b18 (diff)
s/DhallError/ImportError/
Diffstat (limited to '')
-rw-r--r--dhall/tests/common/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhall/tests/common/mod.rs b/dhall/tests/common/mod.rs
index 397a8ee..e748cf0 100644
--- a/dhall/tests/common/mod.rs
+++ b/dhall/tests/common/mod.rs
@@ -44,13 +44,13 @@ pub enum Feature {
TypeInferenceFailure,
}
-pub fn read_dhall_file<'i>(file_path: &str) -> Result<Expr<X, X>, DhallError> {
+pub fn read_dhall_file<'i>(file_path: &str) -> Result<Expr<X, X>, ImportError> {
load_dhall_file(&PathBuf::from(file_path), true)
}
pub fn read_dhall_file_no_resolve_imports<'i>(
file_path: &str,
-) -> Result<ParsedExpr, DhallError> {
+) -> Result<dhall_core::ParsedExpr, ImportError> {
load_dhall_file_no_resolve_imports(&PathBuf::from(file_path))
}
@@ -93,7 +93,7 @@ pub fn run_test(base_path: &str, feature: Feature) {
let err =
read_dhall_file_no_resolve_imports(&file_path).unwrap_err();
match err {
- DhallError::ParseError(_) => {}
+ ImportError::ParseError(_) => {}
e => panic!("Expected parse error, got: {:?}", e),
}
}