mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-09 06:11:01 +02:00
add test
This commit is contained in:
9
test/util/test_shuffle.scad
Normal file
9
test/util/test_shuffle.scad
Normal file
@@ -0,0 +1,9 @@
|
||||
use <unittest.scad>;
|
||||
use <util/shuffle.scad>;
|
||||
|
||||
module test_shuffle() {
|
||||
echo("==== test_shuffle ====");
|
||||
assert(shuffle([1, 2, 3, 4], seed = 1) == [3, 1, 4, 2]);
|
||||
}
|
||||
|
||||
test_shuffle();
|
Reference in New Issue
Block a user