]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/io/mmap/mmap-tests.factor
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring...
[factor.git] / basis / io / mmap / mmap-tests.factor
index d17b03290bc87c9e2b96d6872721ccd4ab03a704..967009243e24cd1d66f629f870f2f84cfe28cc9a 100644 (file)
@@ -6,20 +6,20 @@ SPECIALIZED-ARRAY: uint
 IN: io.mmap.tests
 
 [ "mmap-test-file.txt" temp-file delete-file ] ignore-errors
-{ } [ "12345" "mmap-test-file.txt" temp-file ascii set-file-contents ] unit-test
-{ } [ "mmap-test-file.txt" temp-file [ char <mapped-array> CHAR: 2 0 pick set-nth drop ] with-mapped-file ] unit-test
-{ 5 } [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file ] unit-test
-{ 5 } [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file-reader ] unit-test
-{ "22345" } [ "mmap-test-file.txt" temp-file ascii file-contents ] unit-test
+[ ] [ "12345" "mmap-test-file.txt" temp-file ascii set-file-contents ] unit-test
+[ ] [ "mmap-test-file.txt" temp-file [ char <mapped-array> CHAR: 2 0 pick set-nth drop ] with-mapped-file ] unit-test
+[ 5 ] [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file ] unit-test
+[ 5 ] [ "mmap-test-file.txt" temp-file [ char <mapped-array> length ] with-mapped-file-reader ] unit-test
+[ "22345" ] [ "mmap-test-file.txt" temp-file ascii file-contents ] unit-test
 
 SPECIALIZED-ARRAY: uint
 
-{ t } [
+[ t ] [
     "mmap-test-file.txt" temp-file uint [ sum ] with-mapped-array
     integer?
 ] unit-test
 
-{ t } [
+[ t ] [
     "mmap-test-file.txt" temp-file uint [ sum ] with-mapped-array-reader
     integer?
 ] unit-test
@@ -28,7 +28,7 @@ SPECIALIZED-ARRAY: uint
 
 
 [ "mmap-empty-file.txt" temp-file delete-file ] ignore-errors
-{ } [ "mmap-empty-file.txt" temp-file touch-file ] unit-test
+[ ] [ "mmap-empty-file.txt" temp-file touch-file ] unit-test
 
 [
     "mmap-empty-file.txt" temp-file [
@@ -36,7 +36,7 @@ SPECIALIZED-ARRAY: uint
     ] with-mapped-file
 ] [ bad-mmap-size? ] must-fail-with
 
-{ t } [
+[ t ] [
     [ "test.txt" <mapped-file> void* <c-direct-array> first-unsafe ]
     { nth-unsafe } inlined?
 ] unit-test