1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/test/util/test_every.scad

10 lines
219 B
OpenSCAD
Raw Normal View History

2022-06-06 13:11:46 +08:00
use <util/every.scad>
2021-02-26 12:11:25 +08:00
module test_every() {
echo("==== test_every ====");
assert(every([1, 2, 3, 4, 5], function(elem) elem > 0));
2021-02-26 12:13:31 +08:00
assert(!every([1, 2, 3, 4, 5], function(elem) elem > 3));
2021-02-26 12:11:25 +08:00
}
test_every();