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

8 lines
164 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();