mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-31 18:22:08 +02:00
add tests
This commit is contained in:
9
test/util/test_swap.scad
Normal file
9
test/util/test_swap.scad
Normal file
@@ -0,0 +1,9 @@
|
||||
use <util/swap.scad>;
|
||||
|
||||
module test_swap() {
|
||||
echo("==== test_swap ====");
|
||||
|
||||
assert(swap([10, 20, 30, 40], 1, 3) == [10, 40, 30, 20]);
|
||||
}
|
||||
|
||||
test_swap();
|
Reference in New Issue
Block a user