diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/float_test.gleam | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/gleam/float_test.gleam b/test/gleam/float_test.gleam index a743eff..d069a57 100644 --- a/test/gleam/float_test.gleam +++ b/test/gleam/float_test.gleam @@ -301,13 +301,13 @@ pub fn product_test() { |> should.equal(33.6) } -pub fn random_test() { +pub fn random_lower_boundary_test() { { float.random() >=. 0. } |> should.be_true() } if erlang { - pub fn random_test2() { + pub fn random_upper_boundary_test() { { float.random() <. 1. } |> should.be_true() } @@ -316,7 +316,7 @@ if erlang { if javascript { // Due to IEEE 754 floating point numbers // the ceiling may be rounded to 1.0 even if it should not - pub fn random_test2() { + pub fn random_upper_boundary_test() { { float.random() <=. 1. } |> should.be_true() } |