]> gitweb.factorcode.org Git - factor.git/blob - extra/io/windows/mmap/mmap-tests.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / io / windows / mmap / mmap-tests.factor
1 USING: io io.mmap io.files kernel tools.test continuations
2 sequences io.encodings.ascii accessors ;
3 IN: io.windows.mmap.tests
4
5 [ ] [ "a" "mmap-grow-test.txt" temp-file ascii set-file-contents ] unit-test
6 [ 1 ] [ "mmap-grow-test.txt" temp-file file-info size>> ] unit-test
7 [ ] [ "mmap-grow-test.txt" temp-file 100 [ [ ] change-each ] with-mapped-file ] unit-test
8 [ 100 ] [ "mmap-grow-test.txt" temp-file file-info size>> ] unit-test