Added zero=undef/true/false arg to is_vector. Bugfix for vector_axis()

This commit is contained in:
Garth Minette
2020-07-21 16:15:02 -07:00
parent 3e87405ccf
commit 4a37a5dc8e
3 changed files with 39 additions and 18 deletions

View File

@@ -9,6 +9,10 @@ module test_is_vector() {
assert(is_vector(1) == false);
assert(is_vector("foo") == false);
assert(is_vector(true) == false);
assert(is_vector([0,0,0],zero=true) == true);
assert(is_vector([0,0,0],zero=false) == false);
assert(is_vector([0,1,0],zero=true) == false);
assert(is_vector([0,0,1],zero=false) == true);
}
test_is_vector();