mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-13 17:04:08 +02:00
Fixed transpose for vectors and non-array lists
This commit is contained in:
@@ -215,7 +215,7 @@ test_array_dim();
|
||||
module test_transpose() {
|
||||
assert(transpose([[1,2,3],[4,5,6],[7,8,9]]) == [[1,4,7],[2,5,8],[3,6,9]]);
|
||||
assert(transpose([[1,2,3],[4,5,6]]) == [[1,4],[2,5],[3,6]]);
|
||||
assert(transpose([3,4,5]) == [[3],[4],[5]]);
|
||||
assert(transpose([3,4,5]) == [3,4,5]);
|
||||
}
|
||||
test_transpose();
|
||||
|
||||
|
Reference in New Issue
Block a user