]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/monads/monads-tests.factor
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places...
[factor.git] / extra / monads / monads-tests.factor
index d0014b5abe7ca38c26df52199f9cb70dbf2ce82d..5504633bb636fdac67bc5007f3c930467c142776 100644 (file)
@@ -1,4 +1,5 @@
-USING: tools.test monads math kernel sequences lists promises ;
+USING: tools.test math kernel sequences lists promises monads ;
+FROM: monads => do ;
 IN: monads.tests
 
 [ 5 ] [ 1 identity-monad return [ 4 + ] fmap run-identity ] unit-test
@@ -77,9 +78,9 @@ IN: monads.tests
 ] unit-test
 
 LAZY: nats-from ( n -- list )
-    dup 1+ nats-from cons ;
+    dup 1 + nats-from cons ;
 
-: nats 0 nats-from ;
+: nats ( -- list ) 0 nats-from ;
 
 [ 3 ] [
     {