mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-02-22 16:50:36 +01:00
10 lines
214 B
OpenSCAD
10 lines
214 B
OpenSCAD
|
use <util/some.scad>;
|
||
|
|
||
|
module test_some() {
|
||
|
echo("==== test_some ====");
|
||
|
|
||
|
assert(some([1, 2, 3, 4, 5], function(elem) elem > 3));
|
||
|
assert(!some([1, 2, 3, 4, 5], function(elem) elem > 5));
|
||
|
}
|
||
|
|
||
|
test_some();
|