Reminder to port the tests

This commit is contained in:
Robert Hensing 2023-09-07 17:16:10 +02:00
parent b5594318e5
commit 02c007b372

View file

@ -14,6 +14,7 @@ let
# absolutePathComponentsBetween /a /a/b/c == ["b" "c"]
# absolutePathComponentsBetween /a/b/c /a/b/c == []
absolutePathComponentsBetween =
# TODO: port the tests from https://github.com/NixOS/nixpkgs/pull/112083
ancestor: descendant:
let
a' = /. + ancestor;
@ -43,6 +44,8 @@ let
# Filesystem location below which the returned function is defined. `/.` may be acceptable, but a path closer to the data of interest is better.
root:
# TODO: port the tests from https://github.com/NixOS/nixpkgs/pull/112083
let
makeTree = dir: type: {
value = f dir type;