Module talk:Iterators/testcases

All tests passed.

test_chain
Text Expected Actual
YesY chaining iteration on {1, 2, 3} then {4, 5, 6} {1,2,3,4,5,6} {1,2,3,4,5,6}
YesY chaining iteration on {1, 2, 3} then {4, 5, 6} (object notation) {1,2,3,4,5,6} {1,2,3,4,5,6}
test_filter
Text Expected Actual
YesY filter on pair vals on {1, 2, 3} {2} {2}
YesY filter on pair vals on {1, 2, 3} (object notation) {2} {2}
test_flatten
Text Expected Actual
YesY test flattening {{"plop", "plop"}, {}, {"plop"}} {"plop","plop","plop"} {"plop","plop","plop"}
YesY test flattening {{"plop", "plop"}, {}, {"plop"}} (object notation) {"plop","plop","plop"} {"plop","plop","plop"}
test_fold
Text Expected Actual
YesY Test of fold on all values of a table, by an insertion on an initially empty table. Supposed to be an id op {1,2,3} {1,2,3}
YesY same as above in object notation style {1,2,3} {1,2,3}
YesY Test of the « totable » function that puts all values of iteration on a table. basically the same of the preceding. {1,2,3} {1,2,3}
test_generators
Text Expected Actual
YesY range generator (5 to 8) {5,6,7} {5,6,7}
YesY range generator (5 to 8) (object notation {5,6,7} {5,6,7}
YesY range generator (5 to 8) - step 2 (object notation {5,7} {5,7}
YesY range generator (8 to 5) - step -2 (object notation {8,6} {8,6}
test_map
Text Expected Actual
YesY map, double {1, 2, 3} {2,4,6} {2,4,6}
YesY map, double {1, 2, 3} (object notation) {2,4,6} {2,4,6}
test_pairs
Text Expected Actual
YesY a map on the pairs of {a = 1 , b = 3} that selects keys {"a",1} {"a",1}
YesY a map on the pairs of {a = 1 , b = 3} that selects keys {"a","b"} {"a","b"}


All tests passed.

test_chain
Text Expected Actual
YesY chaining iteration on {1, 2, 3} then {4, 5, 6} {1,2,3,4,5,6} {1,2,3,4,5,6}
YesY chaining iteration on {1, 2, 3} then {4, 5, 6} (object notation) {1,2,3,4,5,6} {1,2,3,4,5,6}
test_filter
Text Expected Actual
YesY filter on pair vals on {1, 2, 3} {2} {2}
YesY filter on pair vals on {1, 2, 3} (object notation) {2} {2}
test_flatten
Text Expected Actual
YesY test flattening {{"plop", "plop"}, {}, {"plop"}} {"plop","plop","plop"} {"plop","plop","plop"}
YesY test flattening {{"plop", "plop"}, {}, {"plop"}} (object notation) {"plop","plop","plop"} {"plop","plop","plop"}
test_fold
Text Expected Actual
YesY Test of fold on all values of a table, by an insertion on an initially empty table. Supposed to be an id op {1,2,3} {1,2,3}
YesY same as above in object notation style {1,2,3} {1,2,3}
YesY Test of the « totable » function that puts all values of iteration on a table. basically the same of the preceding. {1,2,3} {1,2,3}
test_generators
Text Expected Actual
YesY range generator (5 to 8) {5,6,7} {5,6,7}
YesY range generator (5 to 8) (object notation {5,6,7} {5,6,7}
YesY range generator (5 to 8) - step 2 (object notation {5,7} {5,7}
YesY range generator (8 to 5) - step -2 (object notation {8,6} {8,6}
test_map
Text Expected Actual
YesY map, double {1, 2, 3} {2,4,6} {2,4,6}
YesY map, double {1, 2, 3} (object notation) {2,4,6} {2,4,6}
test_pairs
Text Expected Actual
YesY a map on the pairs of {a = 1 , b = 3} that selects keys {"a",1} {"a",1}
YesY a map on the pairs of {a = 1 , b = 3} that selects keys {"a","b"} {"a","b"}

All tests passed.

test_chain
Text Expected Actual
YesY chaining iteration on {1, 2, 3} then {4, 5, 6} {1,2,3,4,5,6} {1,2,3,4,5,6}
YesY chaining iteration on {1, 2, 3} then {4, 5, 6} (object notation) {1,2,3,4,5,6} {1,2,3,4,5,6}
test_filter
Text Expected Actual
YesY filter on pair vals on {1, 2, 3} {2} {2}
YesY filter on pair vals on {1, 2, 3} (object notation) {2} {2}
test_flatten
Text Expected Actual
YesY test flattening {{"plop", "plop"}, {}, {"plop"}} {"plop","plop","plop"} {"plop","plop","plop"}
YesY test flattening {{"plop", "plop"}, {}, {"plop"}} (object notation) {"plop","plop","plop"} {"plop","plop","plop"}
test_fold
Text Expected Actual
YesY Test of fold on all values of a table, by an insertion on an initially empty table. Supposed to be an id op {1,2,3} {1,2,3}
YesY same as above in object notation style {1,2,3} {1,2,3}
YesY Test of the « totable » function that puts all values of iteration on a table. basically the same of the preceding. {1,2,3} {1,2,3}
test_generators
Text Expected Actual
YesY range generator (5 to 8) {5,6,7} {5,6,7}
YesY range generator (5 to 8) (object notation {5,6,7} {5,6,7}
YesY range generator (5 to 8) - step 2 (object notation {5,7} {5,7}
YesY range generator (8 to 5) - step -2 (object notation {8,6} {8,6}
test_map
Text Expected Actual
YesY map, double {1, 2, 3} {2,4,6} {2,4,6}
YesY map, double {1, 2, 3} (object notation) {2,4,6} {2,4,6}
test_pairs
Text Expected Actual
YesY a map on the pairs of {a = 1 , b = 3} that selects keys {"a",1} {"a",1}
YesY a map on the pairs of {a = 1 , b = 3} that selects keys {"a","b"} {"a","b"}
Return to "Iterators/testcases" page.