summaryrefslogtreecommitdiff
path: root/dhall/tests
diff options
context:
space:
mode:
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),
}
}