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