diff options
author | inoas <mail@inoas.com> | 2022-04-08 23:51:33 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-04-16 10:23:34 +0100 |
commit | db20f5a296038fa6ba73172eac5bd5a3818942da (patch) | |
tree | 04c150af92dba62bf4392c4006191c49fcadc280 | |
parent | a616df984da170e8b3cc0f9aa43f1869f1f1c67d (diff) | |
download | gleam_stdlib-db20f5a296038fa6ba73172eac5bd5a3818942da.tar.gz gleam_stdlib-db20f5a296038fa6ba73172eac5bd5a3818942da.zip |
add tests
-rw-r--r-- | test/gleam/float_test.gleam | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gleam/float_test.gleam b/test/gleam/float_test.gleam index d069a57..4236bbd 100644 --- a/test/gleam/float_test.gleam +++ b/test/gleam/float_test.gleam @@ -304,12 +304,16 @@ pub fn product_test() { pub fn random_lower_boundary_test() { { float.random() >=. 0. } |> should.be_true() + { float.random() <. 0. } + |> should.be_false() } if erlang { pub fn random_upper_boundary_test() { { float.random() <. 1. } |> should.be_true() + { float.random() >=. 1. } + |> should.be_false() } } @@ -319,5 +323,7 @@ if javascript { pub fn random_upper_boundary_test() { { float.random() <=. 1. } |> should.be_true() + { float.random() >. 1. } + |> should.be_false() } } |