summaryrefslogtreecommitdiff
path: root/dhall/src/phase
diff options
context:
space:
mode:
authorNadrieril2019-11-11 09:57:29 +0000
committerNadrieril2019-11-11 10:24:58 +0000
commit36070e6c285ecb96fad56470261c66b082685e56 (patch)
tree6d16bcc4b4761f01590db2c66716c6a44392491a /dhall/src/phase
parent5f29aa9a57192b49d30f7b9066b0b1f48d124e76 (diff)
Generate import tests automatically
Diffstat (limited to 'dhall/src/phase')
-rw-r--r--dhall/src/phase/resolve.rs47
1 files changed, 0 insertions, 47 deletions
diff --git a/dhall/src/phase/resolve.rs b/dhall/src/phase/resolve.rs
index c5f2ac8..c302bfa 100644
--- a/dhall/src/phase/resolve.rs
+++ b/dhall/src/phase/resolve.rs
@@ -178,50 +178,3 @@ impl<SE: Copy> Canonicalize for ImportLocation<SE> {
}
}
}
-
-#[cfg(test)]
-#[rustfmt::skip]
-mod spec_tests {
- macro_rules! import_success {
- ($name:ident, $path:expr) => {
- make_spec_test!(
- ImportSuccess(
- &("../dhall-lang/tests/import/success/".to_owned() + $path + "A.dhall"),
- &("../dhall-lang/tests/import/success/".to_owned() + $path + "B.dhall")
- ),
- $name
- );
- };
- }
-
- // macro_rules! import_failure {
- // ($name:ident, $path:expr) => {
- // make_spec_test!(
- // ImportFailure(&("../dhall-lang/tests/import/failure/".to_owned() + $path + ".dhall")),
- // $name
- // );
- // };
- // }
-
- // import_success!(success_alternativeEnvNatural, "alternativeEnvNatural");
- // import_success!(success_alternativeEnvSimple, "alternativeEnvSimple");
- // import_success!(success_alternativeHashMismatch, "alternativeHashMismatch");
- import_success!(success_alternativeNatural, "alternativeNatural");
- import_success!(success_alternativeParseError, "alternativeParseError");
- import_success!(success_alternativeTypeError, "alternativeTypeError");
- // import_success!(success_asLocation, "asLocation");
- // import_success!(success_asText, "asText");
- // import_success!(success_customHeaders, "customHeaders");
- import_success!(success_fieldOrder, "fieldOrder");
- // note: this one needs special setup with env variables
- // import_success!(success_hashFromCache, "hashFromCache");
- // import_success!(success_headerForwarding, "headerForwarding");
- // import_success!(success_nestedHash, "nestedHash");
- // import_success!(success_noHeaderForwarding, "noHeaderForwarding");
- // import_failure!(failure_alternativeEnv, "alternativeEnv");
- // import_failure!(failure_alternativeEnvMissing, "alternativeEnvMissing");
- // import_failure!(failure_cycle, "cycle");
- // import_failure!(failure_hashMismatch, "hashMismatch");
- // import_failure!(failure_missing, "missing");
- // import_failure!(failure_referentiallyInsane, "referentiallyInsane");
-}