]> gitweb.factorcode.org Git - factor.git/commitdiff
io.directories: make sure truncate throws file-not-found
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 May 2023 19:10:39 +0000 (12:10 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 19 May 2023 19:10:39 +0000 (12:10 -0700)
basis/io/directories/directories-tests.factor

index fea1d1c84657e67bef87ee72a3a82e693aaf88c4..de41b112b0147ed6a1d4c7a41fa1a343359e4ce4 100644 (file)
@@ -301,6 +301,8 @@ splitting.monotonic strings system tools.test ;
 { "/foo/bar" } [ P"/foo" P"./bar" append-path ] unit-test
 { "/bar/foo" } [ P"./foo" P"/bar" prepend-path ] unit-test
 
+[ "resource:asdljkfasldkjfasdljfk" 0 truncate-file ] must-fail
+
 { f 16 8 } [
     [
         {