mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-01-17 14:18:13 +01:00
9 lines
158 B
OpenSCAD
9 lines
158 B
OpenSCAD
use <util/swap.scad>
|
|
|
|
module test_swap() {
|
|
echo("==== test_swap ====");
|
|
|
|
assert(swap([10, 20, 30, 40], 1, 3) == [10, 40, 30, 20]);
|
|
}
|
|
|
|
test_swap(); |