aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-04-08 23:25:18 +0200
committerLouis Pilfold <louis@lpil.uk>2022-04-16 10:23:34 +0100
commit83c81cc9310667658d7780acadb88592f61edc51 (patch)
treec6d4c326a2909b5627e625ec10db26d5e24f9a04 /test
parent39764618ea7597cf25c294aea1bb227064cef70e (diff)
downloadgleam_stdlib-83c81cc9310667658d7780acadb88592f61edc51.tar.gz
gleam_stdlib-83c81cc9310667658d7780acadb88592f61edc51.zip
fix js
Diffstat (limited to 'test')
-rw-r--r--test/gleam/float_test.gleam12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/gleam/float_test.gleam b/test/gleam/float_test.gleam
index 109f728..dcb9ed2 100644
--- a/test/gleam/float_test.gleam
+++ b/test/gleam/float_test.gleam
@@ -301,12 +301,12 @@ pub fn product_test() {
|> should.equal(33.6)
}
-pub fn random_seed_test() {
- let random_seed = float.random_seed()
+pub fn random_test() {
+ let random = float.random()
- { random_seed >=. 0.0 }
- |> should.be_true
+ { random >=. 0. }
+ |> should.be_true()
- { random_seed <. 1.0 }
- |> should.be_true
+ { random <. 1. }
+ |> should.be_true()
}