1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-21 08:02:24 +01:00
dotSCAD/test/util/test_count.scad
2022-03-18 08:07:46 +08:00

10 lines
224 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();