mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 13:50:23 +01:00
13 lines
335 B
OpenSCAD
13 lines
335 B
OpenSCAD
include<../std.scad>
|
|
|
|
module test_is_region() {
|
|
assert(is_region([circle(d=10),square(10)]));
|
|
assert(is_region([circle(d=10),square(10),circle(d=50)]));
|
|
assert(is_region([square(10)]));
|
|
assert(!is_region([]));
|
|
assert(!is_region(23));
|
|
assert(!is_region(true));
|
|
assert(!is_region("foo"));
|
|
}
|
|
test_is_region();
|