aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-assert.err.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-fail-assert.err.exp')
-rw-r--r--test/testdata/eval-fail-assert.err.exp30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-assert.err.exp b/test/testdata/eval-fail-assert.err.exp
new file mode 100644
index 0000000..7be9e23
--- /dev/null
+++ b/test/testdata/eval-fail-assert.err.exp
@@ -0,0 +1,30 @@
1error:
2 … while evaluating the attribute 'body'
3 at /pwd/lang/eval-fail-assert.nix:4:3:
4 3|
5 4| body = x "x";
6 | ^
7 5| }
8
9 … from call site
10 at /pwd/lang/eval-fail-assert.nix:4:10:
11 3|
12 4| body = x "x";
13 | ^
14 5| }
15
16 … while calling 'x'
17 at /pwd/lang/eval-fail-assert.nix:2:7:
18 1| let {
19 2| x = arg: assert arg == "y"; 123;
20 | ^
21 3|
22
23 … while evaluating the condition of the assertion '(arg == "y")'
24 at /pwd/lang/eval-fail-assert.nix:2:12:
25 1| let {
26 2| x = arg: assert arg == "y"; 123;
27 | ^
28 3|
29
30 error: string '"x"' is not equal to string '"y"'