Skip to content

Commit

Permalink
io.files.unique: test the copy-path behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed May 28, 2024
1 parent 3bd5787 commit 3c61ca2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions basis/io/files/unique/unique-tests.factor
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ tools.test unicode ;
] with-temp-directory
] unit-test

{ "world" } [
{ "" "world" } [
[
"hello" "foo" utf8 set-file-contents
"foo" [
"world" swap utf8 set-file-contents
utf8 [ "world" ] change-file-contents
] safe-overwrite-file
"foo" utf8 file-contents
] with-temp-directory
Expand All @@ -89,11 +89,11 @@ tools.test unicode ;
] with-temp-directory
] unit-test

{ "HELLO" } [
{ "hello" "HELLO" } [
[
"hello" "foo" utf8 set-file-contents
"foo" [
utf8 [ >upper ] change-file-contents
utf8 [ dup >upper ] change-file-contents
] safe-replace-file
"foo" utf8 file-contents
] with-temp-directory
Expand Down

0 comments on commit 3c61ca2

Please sign in to comment.