summaryrefslogtreecommitdiff
path: root/dhall/tests/import/failure
diff options
context:
space:
mode:
authorNadrieril2020-11-05 00:18:38 +0000
committerNadrieril2020-11-05 19:42:00 +0000
commit8325de2db085bb0b3599bc453b658a1dacfe79ae (patch)
tree2407202f896068430356e0a1ce0d1dbb7590a6c8 /dhall/tests/import/failure
parent442fd7517362ca4f8057699bc325af417fb7c6de (diff)
tests: add some tests
Diffstat (limited to 'dhall/tests/import/failure')
-rw-r--r--dhall/tests/import/failure/unit/DontRecoverCycle.dhall1
-rw-r--r--dhall/tests/import/failure/unit/MissingFile.dhall1
-rw-r--r--dhall/tests/import/failure/unit/MissingFile.txt6
3 files changed, 8 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)
+ |