1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/test/util/test_shuffle.scad
2022-03-17 21:05:29 +08:00

8 lines
165 B
OpenSCAD

use <util/shuffle.scad>;
module test_shuffle() {
echo("==== test_shuffle ====");
assert(shuffle([1, 2, 3, 4], seed = 1) == [3, 1, 4, 2]);
}
test_shuffle();