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
14 lines
414 B
Nix
14 lines
414 B
Nix
with builtins;
|
|
|
|
[
|
|
(replaceStrings ["o"] ["a"] "foobar")
|
|
(replaceStrings ["o"] [""] "foobar")
|
|
(replaceStrings ["oo"] ["u"] "foobar")
|
|
(replaceStrings ["oo" "a"] ["a" "oo"] "foobar")
|
|
(replaceStrings ["oo" "oo"] ["u" "i"] "foobar")
|
|
(replaceStrings [""] ["X"] "abc")
|
|
(replaceStrings [""] ["X"] "")
|
|
(replaceStrings ["-"] ["_"] "a-b")
|
|
(replaceStrings ["oo" "XX"] ["u" (throw "unreachable")] "foobar")
|
|
]
|