1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/test/util/test_count.scad
2022-06-06 13:11:46 +08:00

10 lines
223 B
OpenSCAD

use <util/count.scad>
module test_count() {
echo("==== test_count ====");
points = [[7, 2, 2], [1, 1, 2], [3, 4, 2], [3, 4, 2], [1, 2, 3]];
assert(count(points, function(p) norm(p) > 5) == 3);
}
test_count();