mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-19 11:31:32 +02:00
fixed in_list bug
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
include <BOSL2/std.scad>
|
||||
|
||||
|
||||
// List/Array Ops
|
||||
|
||||
module test_repeat() {
|
||||
@@ -16,6 +15,11 @@ module test_in_list() {
|
||||
assert(in_list("bar", ["foo", "bar", "baz"]));
|
||||
assert(!in_list("bee", ["foo", "bar", "baz"]));
|
||||
assert(in_list("bar", [[2,"foo"], [4,"bar"], [3,"baz"]], idx=1));
|
||||
assert(!in_list(undef, [3,4,5]));
|
||||
assert(in_list(undef,[3,4,undef,5]));
|
||||
assert(!in_list(3,[]));
|
||||
assert(!in_list(3,[4,5,[3]]));
|
||||
|
||||
}
|
||||
test_in_list();
|
||||
|
||||
|
Reference in New Issue
Block a user