sorting strings tools.test ;
IN: io.directories.search.tests
-[ t ] [
+{ t } [
[
10 [ "io.paths.test" "gogogo" make-unique-file ] replicate
current-temporary-directory get [ ] find-all-files
] cleanup-unique-directory [ natural-sort ] same?
] unit-test
-[ f ] [
+{ f } [
{ "omg you shoudnt have a directory called this" "or this" }
t
[ "asdfasdfasdfasdfasdf" tail? ] find-in-directories
] unit-test
-[ f ] [
+{ f } [
{ } t [ "asdfasdfasdfasdfasdf" tail? ] find-in-directories
] unit-test
-[ t ] [
+{ t } [
[
current-temporary-directory get
"the-head" unique-file drop t
] cleanup-unique-directory
] unit-test
-[ t ] [
+{ t } [
[ unique-directory unique-directory ] output>array
[ [ "abcd" append-path touch-file ] each ]
[ [ file-name "abcd" = ] find-all-in-directories length 2 = ]