1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-10-04 10:11:36 +02:00
Files
dotSCAD/test/util/test_find_index.scad
Justin Lin a7ab17c149 refactor
2022-03-17 21:05:29 +08:00

9 lines
251 B
OpenSCAD

use <util/find_index.scad>;
module test_find_index() {
echo("==== test_find_index ====");
assert(find_index([10, 20, 30, 40], function(e) e > 10) == 1);
assert(find_index([10, 20, 30, 40], function(e) e > 50) == -1);
}
test_find_index();