]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/concurrency/futures/futures-tests.factor
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring...
[factor.git] / basis / concurrency / futures / futures-tests.factor
index 6cdcdb7c67c6e1c22adacaa8e08664c0f02750cf..df2764c175e3ba7ab69533f8cd76c74b4ef92515 100644 (file)
@@ -1,7 +1,7 @@
 USING: concurrency.futures kernel tools.test threads ;
 IN: concurrency.futures.tests
 
-{ 50 } [
+[ 50 ] [
     [ 50 ] future ?future
 ] unit-test
 
@@ -9,17 +9,17 @@ IN: concurrency.futures.tests
     [ "this should propogate" throw ] future ?future
 ] must-fail
 
-{ } [
+[ ] [
     [ "this should not propogate" throw ] future drop
 ] unit-test
 
 ! Race condition with futures
-{ 3 3 } [
+[ 3 3 ] [
     [ 3 ] future
     dup ?future swap ?future
 ] unit-test
 
 ! Another race
-{ 3 } [
+[ 3 ] [
     [ 3 yield ] future ?future
 ] unit-test