labs/lib/src
Austreelis 866b8902c9
Some checks failed
buildbot/nix-eval Build done.
fix(lib): swapped entries in test dag.sort.topological."sorts a graph" (#9)
I figure it's a simple typo. This test expects entries `"a"`, `"b"`, `"c"`, `"d"` to be lexicographically sorted but fails. The actual result is that entries are sorted in this order: `c, b, a, d`. This is because the test adds the entry `"b" = lib.dag.entry.between [ "c" ] [ "a" ] "b"`, i.e. after `"c"` and before `"a"`. I haven't checked if it was a logic error in the sort implementation, as other pieces of labs rely on it (and use `lib.dag.entry.between` with the arguments flipped relative to the test, which makes sense), and the arguments of the function `lib.dag.entry.between` are named "after", *then* "before".

Co-authored-by: Austreelis <dev.austreelis@swhaele.net>
Reviewed-on: #9
Reviewed-by: Jake Hamilton <jake.hamilton@hey.com>
Co-authored-by: Austreelis <austreelis@noreply.git.auxolotl.org>
Co-committed-by: Austreelis <austreelis@noreply.git.auxolotl.org>
2024-10-08 18:44:31 +00:00
..
attrs refactor: format all nix code 2024-06-22 10:58:44 -07:00
bools refactor: format all nix code 2024-06-22 10:58:44 -07:00
dag fix(lib): swapped entries in test dag.sort.topological."sorts a graph" (#9) 2024-10-08 18:44:31 +00:00
errors refactor: format all nix code 2024-06-22 10:58:44 -07:00
fp refactor: format all nix code 2024-06-22 10:58:44 -07:00
generators refactor: format all nix code 2024-06-22 10:58:44 -07:00
importers refactor: format all nix code 2024-06-22 10:58:44 -07:00
licenses refactor: format all nix code 2024-06-22 10:58:44 -07:00
lists refactor: format 2024-07-09 01:49:44 -07:00
math refactor: format all nix code 2024-06-22 10:58:44 -07:00
modules refactor: format all nix code 2024-06-22 10:58:44 -07:00
numbers refactor: format all nix code 2024-06-22 10:58:44 -07:00
options refactor(format): apply formatting 2024-07-07 15:03:48 -07:00
packages refactor: format all nix code 2024-06-22 10:58:44 -07:00
paths refactor: format all nix code 2024-06-22 10:58:44 -07:00
points refactor: format all nix code 2024-06-22 10:58:44 -07:00
strings refactor: format all nix code 2024-06-22 10:58:44 -07:00
types "Fix lib.types.derivations.shell's check" (#7) 2024-08-15 16:06:20 +00:00
versions refactor: format all nix code 2024-06-22 10:58:44 -07:00
default.nix refactor: format all nix code 2024-06-22 10:58:44 -07:00
default.test.nix refactor: format all nix code 2024-06-22 10:58:44 -07:00