]> gitweb.factorcode.org Git - factor.git/commitdiff
io.directories: test moving a file to overwrite an existing one
authorJohn Benediktsson <mrjbq7@gmail.com>
Mon, 15 Apr 2024 20:06:59 +0000 (13:06 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 15 Apr 2024 20:07:28 +0000 (13:07 -0700)
basis/io/directories/directories-tests.factor

index de41b112b0147ed6a1d4c7a41fa1a343359e4ce4..edfcba2037ccc2158b7b5d05e17b96e4654c64fb 100644 (file)
@@ -56,6 +56,14 @@ splitting.monotonic strings system tools.test ;
         "file6" link-info drop
     ] unit-test
 
+    { "file7 contents" } [
+        "file8" touch-file
+        "file7 contents" "file7" utf8 set-file-contents
+        "file7" "file8" move-file
+        "file8" utf8 file-contents
+        "file8" delete-file
+    ] unit-test
+
     { } [
         { "Hello world." }
         "test-foo.txt" ascii set-file-lines