mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-30 18:00:01 +02:00
add count
This commit is contained in:
10
test/util/test_count.scad
Normal file
10
test/util/test_count.scad
Normal file
@@ -0,0 +1,10 @@
|
||||
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();
|
Reference in New Issue
Block a user