-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Fix shifted source positions after formatting
- Loading branch information
Showing
39 changed files
with
332 additions
and
319 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
tests/functional/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
error: | ||
… while calling the 'addDrvOutputDependencies' builtin | ||
at /pwd/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix:18:4: | ||
17| | ||
18| in builtins.addDrvOutputDependencies combo-path | ||
| ^ | ||
19| | ||
at /pwd/lang/eval-fail-addDrvOutputDependencies-multi-elem-context.nix:25:1: | ||
24| in | ||
25| builtins.addDrvOutputDependencies combo-path | ||
| ^ | ||
26| | ||
|
||
error: context of string '/nix/store/pg9yqs4yd85yhdm3f4i5dyaqp5jahrsz-fail.drv/nix/store/2dxd5frb715z451vbf7s8birlf3argbk-fail-2.drv' must have exactly one element, but has 2 |
10 changes: 5 additions & 5 deletions
10
tests/functional/lang/eval-fail-addDrvOutputDependencies-wrong-element-kind.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
error: | ||
… while calling the 'addDrvOutputDependencies' builtin | ||
at /pwd/lang/eval-fail-addDrvOutputDependencies-wrong-element-kind.nix:9:4: | ||
8| | ||
9| in builtins.addDrvOutputDependencies drv.outPath | ||
| ^ | ||
10| | ||
at /pwd/lang/eval-fail-addDrvOutputDependencies-wrong-element-kind.nix:13:1: | ||
12| in | ||
13| builtins.addDrvOutputDependencies drv.outPath | ||
| ^ | ||
14| | ||
|
||
error: `addDrvOutputDependencies` can only act on derivations, not on a derivation output such as 'out' |
4 changes: 2 additions & 2 deletions
4
tests/functional/lang/eval-fail-assert-equal-attrs-names-2.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error: | ||
… while evaluating the condition of the assertion '({ a = true; } == { a = true; b = true; })' | ||
at /pwd/lang/eval-fail-assert-equal-attrs-names-2.nix:1:1: | ||
1| assert { a = true; } == { a = true; b = true; }; | ||
1| assert | ||
| ^ | ||
2| throw "unreachable" | ||
2| { | ||
|
||
error: attribute names of attribute set '{ a = true; }' differs from attribute set '{ a = true; b = true; }' |
4 changes: 2 additions & 2 deletions
4
tests/functional/lang/eval-fail-assert-equal-attrs-names.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error: | ||
… while evaluating the condition of the assertion '({ a = true; b = true; } == { a = true; })' | ||
at /pwd/lang/eval-fail-assert-equal-attrs-names.nix:1:1: | ||
1| assert { a = true; b = true; } == { a = true; }; | ||
1| assert | ||
| ^ | ||
2| throw "unreachable" | ||
2| { | ||
|
||
error: attribute names of attribute set '{ a = true; b = true; }' differs from attribute set '{ a = true; }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/functional/lang/eval-fail-assert-equal-list-length.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
error: | ||
… while evaluating the condition of the assertion '([ (1) (0) ] == [ (10) ])' | ||
at /pwd/lang/eval-fail-assert-equal-list-length.nix:1:1: | ||
1| assert [ 1 0 ] == [ 10 ]; | ||
1| assert | ||
| ^ | ||
2| throw "unreachable" | ||
2| [ | ||
|
||
error: list of size '2' is not equal to list of size '1', left hand side is '[ 1 0 ]', right hand side is '[ 10 ]' |
76 changes: 34 additions & 42 deletions
76
tests/functional/lang/eval-fail-assert-nested-bool.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,66 @@ | ||
error: | ||
… while evaluating the condition of the assertion '({ a = { b = [ ({ c = { d = true; }; }) ]; }; } == { a = { b = [ ({ c = { d = false; }; }) ]; }; })' | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:1: | ||
1| assert | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| { a.b = [ { c.d = true; } ]; } | ||
2| | ||
|
||
… while comparing attribute 'a' | ||
|
||
… where left hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:2:5: | ||
1| assert | ||
2| { a.b = [ { c.d = true; } ]; } | ||
| ^ | ||
3| == | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:10: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
… where right hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:4:5: | ||
3| == | ||
4| { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
5| | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:44: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
… while comparing attribute 'b' | ||
|
||
… where left hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:2:5: | ||
1| assert | ||
2| { a.b = [ { c.d = true; } ]; } | ||
| ^ | ||
3| == | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:10: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
… where right hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:4:5: | ||
3| == | ||
4| { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
5| | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:44: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
… while comparing list element 0 | ||
|
||
… while comparing attribute 'c' | ||
|
||
… where left hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:2:15: | ||
1| assert | ||
2| { a.b = [ { c.d = true; } ]; } | ||
| ^ | ||
3| == | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:20: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
… where right hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:4:15: | ||
3| == | ||
4| { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
5| | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:54: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
… while comparing attribute 'd' | ||
|
||
… where left hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:2:15: | ||
1| assert | ||
2| { a.b = [ { c.d = true; } ]; } | ||
| ^ | ||
3| == | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:20: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
… where right hand side is | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:4:15: | ||
3| == | ||
4| { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
5| | ||
at /pwd/lang/eval-fail-assert-nested-bool.nix:1:54: | ||
1| assert { a.b = [ { c.d = true; } ]; } == { a.b = [ { c.d = false; } ]; }; | ||
| ^ | ||
2| | ||
|
||
error: boolean 'true' is not equal to boolean 'false' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
error: | ||
… while evaluating the attribute 'body' | ||
at /pwd/lang/eval-fail-assert.nix:4:3: | ||
3| | ||
4| body = x "x"; | ||
at /pwd/lang/eval-fail-assert.nix:7:3: | ||
6| | ||
7| body = x "x"; | ||
| ^ | ||
5| } | ||
8| } | ||
|
||
… from call site | ||
at /pwd/lang/eval-fail-assert.nix:4:10: | ||
3| | ||
4| body = x "x"; | ||
at /pwd/lang/eval-fail-assert.nix:7:10: | ||
6| | ||
7| body = x "x"; | ||
| ^ | ||
5| } | ||
8| } | ||
|
||
… while calling 'x' | ||
at /pwd/lang/eval-fail-assert.nix:2:7: | ||
1| let { | ||
2| x = arg: assert arg == "y"; 123; | ||
| ^ | ||
3| | ||
at /pwd/lang/eval-fail-assert.nix:3:5: | ||
2| x = | ||
3| arg: | ||
| ^ | ||
4| assert arg == "y"; | ||
|
||
… while evaluating the condition of the assertion '(arg == "y")' | ||
at /pwd/lang/eval-fail-assert.nix:2:12: | ||
1| let { | ||
2| x = arg: assert arg == "y"; 123; | ||
| ^ | ||
3| | ||
at /pwd/lang/eval-fail-assert.nix:4:5: | ||
3| arg: | ||
4| assert arg == "y"; | ||
| ^ | ||
5| 123; | ||
|
||
error: string '"x"' is not equal to string '"y"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
tests/functional/lang/eval-fail-attrset-merge-drops-later-rec.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
error: undefined variable 'd' | ||
at /pwd/lang/eval-fail-attrset-merge-drops-later-rec.nix:1:26: | ||
1| { a.b = 1; a = rec { c = d + 2; d = 3; }; }.c | ||
| ^ | ||
2| | ||
at /pwd/lang/eval-fail-attrset-merge-drops-later-rec.nix:4:9: | ||
3| a = rec { | ||
4| c = d + 2; | ||
| ^ | ||
5| d = 3; |
8 changes: 4 additions & 4 deletions
8
tests/functional/lang/eval-fail-bad-string-interpolation-4.err.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
error: | ||
… while evaluating a path segment | ||
at /pwd/lang/eval-fail-bad-string-interpolation-4.nix:9:3: | ||
8| # The error message should not be too long. | ||
9| ''${pkgs}'' | ||
at /pwd/lang/eval-fail-bad-string-interpolation-4.nix:19:3: | ||
18| # The error message should not be too long. | ||
19| ''${pkgs}'' | ||
| ^ | ||
10| | ||
20| | ||
|
||
error: cannot coerce a set to a string: { a = { a = { a = { a = "ha"; b = "ha"; c = "ha"; d = "ha"; e = "ha"; f = "ha"; g = "ha"; h = "ha"; j = "ha"; }; «8 attributes elided» }; «8 attributes elided» }; «8 attributes elided» } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.