This unit test kind of sucks.
[ drop f ] find-up-to-root
] unit-test
-[
- {
- "/a"
- "/a/a"
- "/a/a/a"
- "/a/b"
- "/a/b/a"
- "/b"
- "/b/a"
- "/b/a/a"
- "/b/b"
- "/b/b/a"
- "/c"
- "/c/a"
- "/c/a/a"
- "/c/b"
- "/c/b/a"
- }
- {
- "/a"
- "/b"
- "/c"
- "/a/a"
- "/a/b"
- "/b/a"
- "/b/b"
- "/c/a"
- "/c/b"
- "/a/a/a"
- "/a/b/a"
- "/b/a/a"
- "/b/b/a"
- "/c/a/a"
- "/c/b/a"
- }
-] [
+{
+ t
+} [
[
"a" make-directory
"a/a" make-directory
[ natural-sort ] map concat
] with-variable
] with-test-directory
+ [ natural-sort ] bi@ sequence=
] unit-test