mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00: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();
|