aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/lang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/lang')
-rw-r--r--tests/functional/lang/eval-fail-duplicate-traces.err.exp7
-rw-r--r--tests/functional/lang/eval-fail-foldlStrict-strict-op-application.err.exp7
-rw-r--r--tests/functional/lang/eval-fail-mutual-recursion.err.exp7
3 files changed, 21 insertions, 0 deletions
diff --git a/tests/functional/lang/eval-fail-duplicate-traces.err.exp b/tests/functional/lang/eval-fail-duplicate-traces.err.exp
index 32ad9b376..cedaebd3b 100644
--- a/tests/functional/lang/eval-fail-duplicate-traces.err.exp
+++ b/tests/functional/lang/eval-fail-duplicate-traces.err.exp
@@ -41,4 +41,11 @@ error:
| ^
5| if n > 0
+ … while calling the 'throw' builtin
+ at /pwd/lang/eval-fail-duplicate-traces.nix:7:10:
+ 6| then throwAfter (n - 1)
+ 7| else throw "Uh oh!";
+ | ^
+ 8| in
+
error: Uh oh!
diff --git a/tests/functional/lang/eval-fail-foldlStrict-strict-op-application.err.exp b/tests/functional/lang/eval-fail-foldlStrict-strict-op-application.err.exp
index 7cb08af8a..4903bc82d 100644
--- a/tests/functional/lang/eval-fail-foldlStrict-strict-op-application.err.exp
+++ b/tests/functional/lang/eval-fail-foldlStrict-strict-op-application.err.exp
@@ -27,4 +27,11 @@ error:
| ^
6|
+ … while calling the 'throw' builtin
+ at /pwd/lang/eval-fail-foldlStrict-strict-op-application.nix:5:9:
+ 4| null
+ 5| [ (_: throw "Not the final value, but is still forced!") (_: 23) ]
+ | ^
+ 6|
+
error: Not the final value, but is still forced!
diff --git a/tests/functional/lang/eval-fail-mutual-recursion.err.exp b/tests/functional/lang/eval-fail-mutual-recursion.err.exp
index dc2e11766..c034afcd5 100644
--- a/tests/functional/lang/eval-fail-mutual-recursion.err.exp
+++ b/tests/functional/lang/eval-fail-mutual-recursion.err.exp
@@ -54,4 +54,11 @@ error:
(21 duplicate frames omitted)
+ … while calling the 'throw' builtin
+ at /pwd/lang/eval-fail-mutual-recursion.nix:34:10:
+ 33| then throwAfterB true 10
+ 34| else throw "Uh oh!";
+ | ^
+ 35| in
+
error: Uh oh!