test_find_index.scad
1 use <util/find_index.scad> 2 3 module test_find_index() { 4 echo("==== test_find_index ===="); 5 assert(find_index([10, 20, 30, 40], function(e) e > 10) == 1); 6 assert(find_index([10, 20, 30, 40], function(e) e > 50) == -1); 7 } 8 9 test_find_index();