2022-06-06 13:11:46 +08:00
|
|
|
use <util/some.scad>
|
2021-02-26 12:13:31 +08:00
|
|
|
|
|
|
|
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();
|