]> gitweb.factorcode.org Git - factor.git/commitdiff
test read-only mmap
authorDoug Coleman <erg@jobim.local>
Sun, 26 Apr 2009 00:32:44 +0000 (19:32 -0500)
committerDoug Coleman <erg@jobim.local>
Sun, 26 Apr 2009 00:32:44 +0000 (19:32 -0500)
basis/io/mmap/mmap-tests.factor

index a4d55f3c1e040380c4b6ac1161ae3b3676585f24..0e1cd1a03691904e6c758e68f68d153a915112ae 100644 (file)
@@ -7,6 +7,7 @@ IN: io.mmap.tests
 [ ] [ "12345" "mmap-test-file.txt" temp-file ascii set-file-contents ] unit-test
 [ ] [ "mmap-test-file.txt" temp-file [ CHAR: 2 0 pick set-nth drop ] with-mapped-char-file ] unit-test
 [ 5 ] [ "mmap-test-file.txt" temp-file [ length ] with-mapped-char-file ] unit-test
+[ 5 ] [ "mmap-test-file.txt" temp-file [ length ] with-mapped-char-file-reader ] unit-test
 [ "22345" ] [ "mmap-test-file.txt" temp-file ascii file-contents ] unit-test
 [ "mmap-test-file.txt" temp-file delete-file ] ignore-errors