diff --git a/test/test_all.scad b/test/test_all.scad index e5b62161..208f33fd 100644 --- a/test/test_all.scad +++ b/test/test_all.scad @@ -69,6 +69,7 @@ include ; include ; include ; include ; +include ; // Voxel include ; diff --git a/test/util/test_zip.scad b/test/util/test_zip.scad new file mode 100644 index 00000000..1cb6da56 --- /dev/null +++ b/test/util/test_zip.scad @@ -0,0 +1,13 @@ +use ; + +module test_zip() { + echo("==== test_zip ===="); + + xs = [10, 20, 30]; + ys = [5, 15, 25]; + zs = [2.5, 7.5, 12.4]; + + assert(zip([xs, ys, zs]) == [[10, 5, 2.5], [20, 15, 7.5], [30, 25, 12.4]]); +} + +test_zip(); \ No newline at end of file