summaryrefslogtreecommitdiff
path: root/dhall/tests
diff options
context:
space:
mode:
authorNadrieril2020-02-09 15:50:58 +0000
committerNadrieril2020-02-09 19:58:28 +0000
commitca93f39201f6f8be9bc1466eed7323d0426e135c (patch)
treeb6d61c2932a7f846ab5b4390995156c7cb08c4e1 /dhall/tests
parent5abc0628058a318782c46614d943c034711845c6 (diff)
Track output of import errors
Diffstat (limited to 'dhall/tests')
-rw-r--r--dhall/tests/errors/import/cycle.txt1
-rw-r--r--dhall/tests/errors/import/importBoundary.txt1
2 files changed, 2 insertions, 0 deletions
diff --git a/dhall/tests/errors/import/cycle.txt b/dhall/tests/errors/import/cycle.txt
new file mode 100644
index 0000000..0a20503
--- /dev/null
+++ b/dhall/tests/errors/import/cycle.txt
@@ -0,0 +1 @@
+Recursive(Import { mode: Code, location: Local(Parent, FilePath { file_path: ["data", "cycle.dhall"] }), hash: None }, Resolve(Recursive(Import { mode: Code, location: Local(Parent, FilePath { file_path: ["failure", "cycle.dhall"] }), hash: None }, Resolve(ImportCycle([Import { mode: Code, location: Local(Parent, FilePath { file_path: ["data", "cycle.dhall"] }), hash: None }, Import { mode: Code, location: Local(Parent, FilePath { file_path: ["failure", "cycle.dhall"] }), hash: None }], Import { mode: Code, location: Local(Parent, FilePath { file_path: ["data", "cycle.dhall"] }), hash: None })))))
diff --git a/dhall/tests/errors/import/importBoundary.txt b/dhall/tests/errors/import/importBoundary.txt
new file mode 100644
index 0000000..8f78e48
--- /dev/null
+++ b/dhall/tests/errors/import/importBoundary.txt
@@ -0,0 +1 @@
+Recursive(Import { mode: Code, location: Local(Parent, FilePath { file_path: ["data", "importBoundary.dhall"] }), hash: None }, Typecheck(TypeError { message: Custom("error: unbound variable `x`\n --> <current file>:1:0\n |\n...\n3 | x\n | ^ not found in this scope\n |") }))