diff options
Diffstat (limited to 'test/gleam/int_test.gleam')
-rw-r--r-- | test/gleam/int_test.gleam | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/gleam/int_test.gleam b/test/gleam/int_test.gleam index 79c444b..9129c66 100644 --- a/test/gleam/int_test.gleam +++ b/test/gleam/int_test.gleam @@ -346,20 +346,20 @@ pub fn undigits_test() { |> should.equal(Error(int.InvalidBase)) } -pub fn random_between_test() { +pub fn random_test() { let test_boundaries = fn(_acc, _e) { - int.random_between(0, 0) + int.random(0, 0) |> should.equal(0) - int.random_between(-1, 0) + int.random(-1, 0) |> list.contains([-1, 0], _) |> should.be_true - int.random_between(-1, 1) + int.random(-1, 1) |> list.contains([-1, 0], _) |> should.be_true - int.random_between(-1, 2) + int.random(-1, 2) |> list.contains([-1, 0, 1], _) |> should.be_true } @@ -373,7 +373,7 @@ pub fn random_between_test() { |> iterator.from_list |> iterator.fold( from: 0, - with: fn(acc, _element) { acc + int.random_between(min, max) }, + with: fn(acc, _element) { acc + int.random(min, max) }, ) |> fn(sum) { sum / iterations } |> fn(sum) { |