aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-fail-assert-equal-floats.err.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-fail-assert-equal-floats.err.exp')
-rw-r--r--test/testdata/eval-fail-assert-equal-floats.err.exp22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/testdata/eval-fail-assert-equal-floats.err.exp b/test/testdata/eval-fail-assert-equal-floats.err.exp
new file mode 100644
index 0000000..d8545e2
--- /dev/null
+++ b/test/testdata/eval-fail-assert-equal-floats.err.exp
@@ -0,0 +1,22 @@
1error:
2 … while evaluating the condition of the assertion '({ b = 1; } == { b = 1.01; })'
3 at /pwd/lang/eval-fail-assert-equal-floats.nix:1:1:
4 1| assert { b = 1.0; } == { b = 1.01; };
5 | ^
6 2| abort "unreachable"
7
8 … while comparing attribute 'b'
9
10 … where left hand side is
11 at /pwd/lang/eval-fail-assert-equal-floats.nix:1:10:
12 1| assert { b = 1.0; } == { b = 1.01; };
13 | ^
14 2| abort "unreachable"
15
16 … where right hand side is
17 at /pwd/lang/eval-fail-assert-equal-floats.nix:1:26:
18 1| assert { b = 1.0; } == { b = 1.01; };
19 | ^
20 2| abort "unreachable"
21
22 error: a float with value '1' is not equal to a float with value '1.01'