diff options
Diffstat (limited to 'dhall/tests/import')
7 files changed, 12 insertions, 0 deletions
diff --git a/dhall/tests/import/failure/unit/DontRecoverCycle.dhall b/dhall/tests/import/failure/unit/DontRecoverCycle.dhall new file mode 100644 index 0000000..47b22f3 --- /dev/null +++ b/dhall/tests/import/failure/unit/DontRecoverCycle.dhall @@ -0,0 +1 @@ +../../../../../dhall-lang/tests/import/failure/cycle.dhall ? 0 diff --git a/dhall/tests/import/failure/unit/MissingFile.dhall b/dhall/tests/import/failure/unit/MissingFile.dhall new file mode 100644 index 0000000..fdcd044 --- /dev/null +++ b/dhall/tests/import/failure/unit/MissingFile.dhall @@ -0,0 +1 @@ +./doesnt-exist.dhall diff --git a/dhall/tests/import/failure/unit/MissingFile.txt b/dhall/tests/import/failure/unit/MissingFile.txt new file mode 100644 index 0000000..de58996 --- /dev/null +++ b/dhall/tests/import/failure/unit/MissingFile.txt @@ -0,0 +1,6 @@ +Type error: error: error + --> <current file>:1:1 + | +1 | ./doesnt-exist.dhall + | ^^^^^^^^^^^^^^^^^^^^ No such file or directory (os error 2) + | diff --git a/dhall/tests/import/success/unit/AlternativeWithVariableA.dhall b/dhall/tests/import/success/unit/AlternativeWithVariableA.dhall new file mode 100644 index 0000000..31f3c6f --- /dev/null +++ b/dhall/tests/import/success/unit/AlternativeWithVariableA.dhall @@ -0,0 +1 @@ +let x = 0 in (missing ? x) diff --git a/dhall/tests/import/success/unit/AlternativeWithVariableB.dhall b/dhall/tests/import/success/unit/AlternativeWithVariableB.dhall new file mode 100644 index 0000000..573541a --- /dev/null +++ b/dhall/tests/import/success/unit/AlternativeWithVariableB.dhall @@ -0,0 +1 @@ +0 diff --git a/dhall/tests/import/success/unit/RecoverTransitiveFailureA.dhall b/dhall/tests/import/success/unit/RecoverTransitiveFailureA.dhall new file mode 100644 index 0000000..4508e54 --- /dev/null +++ b/dhall/tests/import/success/unit/RecoverTransitiveFailureA.dhall @@ -0,0 +1 @@ +../failure/MissingFile.dhall ? 0 diff --git a/dhall/tests/import/success/unit/RecoverTransitiveFailureB.dhall b/dhall/tests/import/success/unit/RecoverTransitiveFailureB.dhall new file mode 100644 index 0000000..573541a --- /dev/null +++ b/dhall/tests/import/success/unit/RecoverTransitiveFailureB.dhall @@ -0,0 +1 @@ +0 |