nix: format test fixtures via nix fmt
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ia9c1e9b0a8cd9c6d834f153609baa5426a6a6964
This commit is contained in:
parent
e8dd09c5b4
commit
b49044c9a5
15 changed files with 132 additions and 73 deletions
|
|
@ -1,8 +1,12 @@
|
|||
# Test operator precedence
|
||||
let
|
||||
a = 1 + 2 * 3; # Should be 1 + (2 * 3) = 7
|
||||
b = 10 - 5 - 2; # Should be (10 - 5) - 2 = 3
|
||||
c = true && false || true; # Should be (true && false) || true = true
|
||||
d = 1 < 2 && 3 > 2; # Should be (1 < 2) && (3 > 2) = true
|
||||
in
|
||||
{ a = a; b = b; c = c; d = d; }
|
||||
a = 1 + 2 * 3; # Should be 1 + (2 * 3) = 7
|
||||
b = 10 - 5 - 2; # Should be (10 - 5) - 2 = 3
|
||||
c = true && false || true; # Should be (true && false) || true = true
|
||||
d = 1 < 2 && 3 > 2; # Should be (1 < 2) && (3 > 2) = true
|
||||
in {
|
||||
a = a;
|
||||
b = b;
|
||||
c = c;
|
||||
d = d;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue