I did a pass through all files, fixing bits that have annoyed me here and there based on vibes. Roughly: - Replaced some out values like bools or strings with lists where appropriate. Those tests were likely older than the value printer - Added some parser tests where it makes sense - Gently touched some formatting woes, while trying to not cause too much diff noise - Removed some dead `with (import ./lib.nix);` code Change-Id: I8c40b2110f0b7799f68ae38ba61f049c5f1f6ee8
22 lines
416 B
Nix
22 lines
416 B
Nix
with builtins;
|
|
|
|
[
|
|
(sort lessThan [ 483 249 526 147 42 77 ])
|
|
(sort (x: y: y < x) [ 483 249 526 147 42 77 ])
|
|
(sort lessThan [ "foo" "bar" "xyzzy" "fnord" ])
|
|
(sort (x: y: x.key < y.key)
|
|
[ { key = 1; value = "foo"; } { key = 2; value = "bar"; } { key = 1; value = "fnord"; } ])
|
|
(sort lessThan [
|
|
[ 1 6 ]
|
|
[ ]
|
|
[ 2 3 ]
|
|
[ 3 ]
|
|
[ 1 5 ]
|
|
[ 2 ]
|
|
[ 1 ]
|
|
[ ]
|
|
[ 1 4 ]
|
|
[ 3 ]
|
|
])
|
|
]
|