]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/sequences/repeating/repeating-tests.factor
sequences.repeating: rename repeating to cycle and add repeat
[factor.git] / extra / sequences / repeating / repeating-tests.factor
index 15b7ef444bb6cdea5a57b13e1bfbddac2f876611..56139666f58ac4005d497bb0d8ec6c8257259135 100644 (file)
@@ -1,5 +1,8 @@
 USING: sequences.repeating tools.test ;
 IN: sequences.repeating.tests
 
-[ { 1 2 3 1 2 } ] [ { 1 2 3 } 5 repeated ] unit-test
-[ { 1 2 3 1 2 3 1 2 3 } ] [ { 1 2 3 } 9 repeated ] unit-test
+[ { 1 2 3 1 2 } ] [ { 1 2 3 } 5 cycle ] unit-test
+[ { 1 2 3 1 2 3 1 2 3 } ] [ { 1 2 3 } 9 cycle ] unit-test
+
+[ { } ] [ { 1 2 3 } 0 repeat ] unit-test
+[ { 1 1 1 2 2 2 3 3 3 } ] [ { 1 2 3 } 3 repeat ] unit-test