1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-18 22:58:04 +01:00
This commit is contained in:
Justin Lin 2021-02-11 11:29:16 +08:00
parent ed5dc9dfd8
commit 26330309ab
2 changed files with 14 additions and 0 deletions

View File

@ -69,6 +69,7 @@ include <util/test_fibseq.scad>;
include <util/test_bsearch.scad>;
include <util/test_choose.scad>;
include <util/test_dedup.scad>;
include <util/test_zip.scad>;
// Voxel
include <voxel/test_vx_line.scad>;

13
test/util/test_zip.scad Normal file
View File

@ -0,0 +1,13 @@
use <util/zip.scad>;
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();