summaryrefslogtreecommitdiff
path: root/dhall/src/tests.rs
diff options
context:
space:
mode:
authorNadrieril2019-08-07 21:57:51 +0200
committerNadrieril2019-08-07 21:57:51 +0200
commita01cf8ad53a3839d13aa99a589ba0f2aa796d511 (patch)
treeb3f636de15e3c593a010d2099289434165cd303a /dhall/src/tests.rs
parent6654d441e5741013a8618907773ac54101e3fdf2 (diff)
Remove an annoying redundancy in the test harness
Diffstat (limited to '')
-rw-r--r--dhall/src/tests.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/dhall/src/tests.rs b/dhall/src/tests.rs
index da48d15..9784eec 100644
--- a/dhall/src/tests.rs
+++ b/dhall/src/tests.rs
@@ -81,19 +81,7 @@ pub fn run_test(
) -> Result<()> {
use self::Feature::*;
use self::Status::*;
- let feature_prefix = match feature {
- Parser => "parser/",
- Printer => "parser/",
- BinaryEncoding => "parser/",
- BinaryDecoding => "binary-decode/",
- Import => "import/",
- Normalization => "normalization/",
- AlphaNormalization => "alpha-normalization/",
- Typecheck => "typecheck/",
- TypeInference => "type-inference/",
- };
- let base_path =
- "../dhall-lang/tests/".to_owned() + feature_prefix + base_path;
+ let base_path = base_path.to_owned();
match status {
Success => {
match feature {