diff options
author | Nadrieril | 2020-03-01 16:37:10 +0000 |
---|---|---|
committer | Nadrieril | 2020-03-05 15:58:54 +0000 |
commit | 24ff14dc98b83ddc12239a0eae4852c9cd87d41f (patch) | |
tree | 494279e9ae81be144d7eb3834e6080a7819aea47 /dhall/tests/import/data/referentiallyOpaque.dhall | |
parent | e277fb2f7316fef5c20e7c485eeba1f14328d621 (diff) |
Add a lot of import tests
Diffstat (limited to '')
-rw-r--r-- | dhall/tests/import/data/referentiallyOpaque.dhall | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dhall/tests/import/data/referentiallyOpaque.dhall b/dhall/tests/import/data/referentiallyOpaque.dhall new file mode 100644 index 0000000..ff33765 --- /dev/null +++ b/dhall/tests/import/data/referentiallyOpaque.dhall @@ -0,0 +1,18 @@ +{- This is a "referentially opaque" import (i.e. an import that is not + globally addressable), which cannot be imported by a "referentially + transparent" import (i.e. an import that is globally addressable). + + This test file is used in a failing test to verify that referentially + transparent imports cannot import referentially opaque imports. In the test + suite this file is actually imported via its GitHub URL (not its local file + path), so it plays the role of the referentially transparent import. Then, + this file attempts to import a referentially opaque import (an environment + variable in this case) to verify that the import fails. + + For this test file we need to select a referentially opaque import that + would succeed if imported on its own, so that a non-compliant implementation + doesn't fail this test for the wrong reason (i.e. due to the import not + being present). We thus use the `DHALL_TEST_VAR` environment variable, that + is expected to be set when running import tests. +-} +env:DHALL_TEST_VAR as Text |