]> gitweb.factorcode.org Git - factor.git/blobdiff - core/sequences/sequences-tests.factor
assocs: Add zip-index, zip-index-as and docs/tests.
[factor.git] / core / sequences / sequences-tests.factor
index d339f60b8dcbfbe8570e30d098655491b0486790..5b05b4ef30d1573f0c285c581b133e576a99c5c5 100644 (file)
@@ -386,3 +386,19 @@ USE: make
 { { } } [ 0 0 <repetition> >array ] unit-test
 { { 0 } } [ 1 0 <repetition> >array ] unit-test
 { { 0 0 0 } } [ 3 0 <repetition> >array ] unit-test
+
+{
+    { 11 23 35 }
+} [ { 11 22 33 } [ + ] map-index ] unit-test
+
+{
+    V{ 11 23 35 }
+} [ { 11 22 33 } [ + ] V{ } map-index-as ] unit-test
+
+{
+    B{ 11 23 35 }
+} [ { 11 22 33 } [ + ] B{ } map-index-as ] unit-test
+
+{
+    BV{ 11 23 35 }
+} [ { 11 22 33 } [ + ] BV{ } map-index-as ] unit-test