io.files.info: cleanup by using with-temp-directory.
parent
2e85dd2eb3
commit
32b29f7079
|
@ -3,13 +3,15 @@ io.directories kernel io.pathnames accessors tools.test
|
||||||
sequences io.files.temp ;
|
sequences io.files.temp ;
|
||||||
IN: io.files.info.tests
|
IN: io.files.info.tests
|
||||||
|
|
||||||
{ t } [
|
{ "hi41" } [
|
||||||
temp-directory [ "hi41" "test41" utf8 set-file-contents ] with-directory
|
[
|
||||||
temp-directory "test41" append-path utf8 file-contents "hi41" =
|
"hi41" "test41" utf8 set-file-contents
|
||||||
|
"test41" utf8 file-contents
|
||||||
|
] with-temp-directory
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
{ t } [
|
{ 4 } [
|
||||||
temp-directory [ "test41" file-info size>> ] with-directory 4 =
|
[ "test41" file-info size>> ] with-temp-directory
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
{ t } [ "/" file-system-info file-system-info-tuple? ] unit-test
|
{ t } [ "/" file-system-info file-system-info-tuple? ] unit-test
|
||||||
|
|
Loading…
Reference in New Issue