mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-18 22:58:04 +01:00
add test
This commit is contained in:
parent
ed5dc9dfd8
commit
26330309ab
@ -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
13
test/util/test_zip.scad
Normal 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();
|
Loading…
x
Reference in New Issue
Block a user