1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00
dotSCAD/test/util/test_swap.scad
2022-06-06 13:11:46 +08:00

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();