aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-04-08 23:47:33 +0200
committerLouis Pilfold <louis@lpil.uk>2022-04-16 10:23:34 +0100
commita616df984da170e8b3cc0f9aa43f1869f1f1c67d (patch)
treeb65728f809709edc68ff357bb386b746780836c0 /test
parent5a7f75db6a2b170c289faf265035568cfaed22d8 (diff)
downloadgleam_stdlib-a616df984da170e8b3cc0f9aa43f1869f1f1c67d.tar.gz
gleam_stdlib-a616df984da170e8b3cc0f9aa43f1869f1f1c67d.zip
rename test fns
Diffstat (limited to 'test')
-rw-r--r--test/gleam/float_test.gleam6
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()
}