mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-31 01:50:08 +02:00
organize masks into massk3d.scad and masks2d.scad
This commit is contained in:
@@ -164,6 +164,16 @@ module test_all_zero() {
|
||||
test_all_zero();
|
||||
|
||||
|
||||
module test_all_equal() {
|
||||
assert(all_equal([1,1,1,1]));
|
||||
assert(all_equal([[3,4],[3,4],[3,4]]));
|
||||
assert(!all_equal([1,2,1,1]));
|
||||
assert(!all_equal([1,1.001,1,1.001,.999]));
|
||||
assert(all_equal([1,1.001,1,1.001,.999],eps=.01));
|
||||
}
|
||||
test_all_equal();
|
||||
|
||||
|
||||
module test_all_nonzero() {
|
||||
assert(!all_nonzero(0));
|
||||
assert(!all_nonzero([0,0,0]));
|
||||
|
Reference in New Issue
Block a user