From 488bce275f104384282a0867aeaad011ae8cf48c Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 2 Feb 2020 18:27:00 +0000 Subject: Add local test files on top of dhall-lang tests --- dhall/src/tests.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dhall/src/tests.rs') diff --git a/dhall/src/tests.rs b/dhall/src/tests.rs index 8216243..8136625 100644 --- a/dhall/src/tests.rs +++ b/dhall/src/tests.rs @@ -179,6 +179,9 @@ pub fn run_test(test: Test<'_>) -> Result<()> { let file_path = PathBuf::from(file_path); let error_file_path = file_path .strip_prefix("../dhall-lang/tests/type-inference/failure/") + .or_else(|_| { + file_path.strip_prefix("tests/type-inference/failure/") + }) .unwrap(); let error_file_path = PathBuf::from("tests/type-errors/").join(error_file_path); -- cgit v1.2.3