diff options
author | Nadrieril | 2020-02-02 18:27:00 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-02 18:36:06 +0000 |
commit | 488bce275f104384282a0867aeaad011ae8cf48c (patch) | |
tree | 8c9d117635ffe60781dfac31b7c612ee172e1b71 /dhall/src/tests.rs | |
parent | b7b5a0d27eb0cccdcd0c532a7042b3514eacbe40 (diff) |
Add local test files on top of dhall-lang tests
Diffstat (limited to '')
-rw-r--r-- | dhall/src/tests.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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); |