Fixed bugs in hull_points, added seeds to tests, added seed parm to shuffle()

This commit is contained in:
Adrian Mariano
2020-12-22 18:15:25 -05:00
parent e10a70fc98
commit a495528398
5 changed files with 42 additions and 35 deletions

View File

@@ -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);