From 980349dff0aaaa6ed34ae78d53ff57b67d7629d5 Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Sun, 6 Dec 2020 17:18:58 +0000 Subject: Add test --- dhall/tests/import/success/unit/MixImportModesA.dhall | 1 + dhall/tests/import/success/unit/MixImportModesB.dhall | 1 + dhall/tests/spec.rs | 2 ++ 3 files changed, 4 insertions(+) create mode 100644 dhall/tests/import/success/unit/MixImportModesA.dhall create mode 100644 dhall/tests/import/success/unit/MixImportModesB.dhall diff --git a/dhall/tests/import/success/unit/MixImportModesA.dhall b/dhall/tests/import/success/unit/MixImportModesA.dhall new file mode 100644 index 0000000..8946ff8 --- /dev/null +++ b/dhall/tests/import/success/unit/MixImportModesA.dhall @@ -0,0 +1 @@ +{ n = ../../data/simple.dhall, txt = ../../data/simple.dhall as Text, loc = ../../data/simple.dhall as Location } diff --git a/dhall/tests/import/success/unit/MixImportModesB.dhall b/dhall/tests/import/success/unit/MixImportModesB.dhall new file mode 100644 index 0000000..a4e02f5 --- /dev/null +++ b/dhall/tests/import/success/unit/MixImportModesB.dhall @@ -0,0 +1 @@ +{ loc = < Environment: Text | Local: Text | Missing | Remote: Text >.Local "./dhall/tests/import/data/simple.dhall", n = < Environment: Text | Local: Text | Missing | Remote: Text >.Local "./dhall/tests/import/data/simple.dhall", txt = < Environment: Text | Local: Text | Missing | Remote: Text >.Local "./dhall/tests/import/data/simple.dhall" } diff --git a/dhall/tests/spec.rs b/dhall/tests/spec.rs index 6b156f6..d3db321 100644 --- a/dhall/tests/spec.rs +++ b/dhall/tests/spec.rs @@ -535,6 +535,8 @@ fn ignore_test(variant: SpecTestKind, path: &str) -> bool { // Failing for now, we should fix that. let is_failing_for_now = false + // TODO: fix that one + // || path == "import/success/unit/MixImportModes" // TODO: fails because of caching issues. || path == "type-inference/success/prelude" // TODO: do not recover from cyclic imports -- cgit v1.2.3