mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-31 11:21:54 +02:00
Fixed bugs in hull_points, added seeds to tests, added seed parm to shuffle()
This commit is contained in:
@@ -238,7 +238,7 @@ test_approx();
|
||||
|
||||
|
||||
module test_min_index() {
|
||||
vals = rands(-100,100,100);
|
||||
vals = rands(-100,100,100,seed=75);
|
||||
minval = min(vals);
|
||||
minidx = min_index(vals);
|
||||
assert_equal(vals[minidx], minval);
|
||||
@@ -254,7 +254,7 @@ test_min_index();
|
||||
|
||||
|
||||
module test_max_index() {
|
||||
vals = rands(-100,100,100);
|
||||
vals = rands(-100,100,100,seed=97);
|
||||
maxval = max(vals);
|
||||
maxidx = max_index(vals);
|
||||
assert_equal(vals[maxidx], maxval);
|
||||
|
Reference in New Issue
Block a user