aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-04-14 05:28:37 +0200
committerLouis Pilfold <louis@lpil.uk>2022-04-16 10:23:34 +0100
commit992f5a4f2f40537db96fb50c97f96f56f003b41b (patch)
tree2d5dfc0c6f9f35874cd09b585c5a43440be457b4 /test
parentf540741d192c6eb664d48a7f9aadb3fa3cd0974e (diff)
downloadgleam_stdlib-992f5a4f2f40537db96fb50c97f96f56f003b41b.tar.gz
gleam_stdlib-992f5a4f2f40537db96fb50c97f96f56f003b41b.zip
readability
Diffstat (limited to 'test')
-rw-r--r--test/gleam/float_test.gleam4
-rw-r--r--test/gleam/int_test.gleam4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/gleam/float_test.gleam b/test/gleam/float_test.gleam
index 750d60c..ad29e53 100644
--- a/test/gleam/float_test.gleam
+++ b/test/gleam/float_test.gleam
@@ -305,7 +305,7 @@ pub fn product_test() {
}
pub fn random_test() {
- let test_boundaries = fn(_acc, _e) {
+ let test_boundaries = fn(_accumulator, _element) {
float.random(0.0, 0.0)
|> should.equal(0.0)
@@ -348,7 +348,7 @@ pub fn random_test() {
|> iterator.from_list()
|> iterator.fold(
from: 0.0,
- with: fn(acc, _element) { acc +. float.random(min, max) },
+ with: fn(accumulator, _element) { accumulator +. float.random(min, max) },
)
|> fn(sum) { sum /. int.to_float(iterations) }
|> float.loosely_compare(expected_average, tolerance)
diff --git a/test/gleam/int_test.gleam b/test/gleam/int_test.gleam
index 4ba607f..91fa0b3 100644
--- a/test/gleam/int_test.gleam
+++ b/test/gleam/int_test.gleam
@@ -321,7 +321,7 @@ pub fn undigits_test() {
}
pub fn random_test() {
- let test_boundaries = fn(_acc, _e) {
+ let test_boundaries = fn(_accumulator, _element) {
int.random(0, 0)
|> should.equal(0)
@@ -347,7 +347,7 @@ pub fn random_test() {
|> iterator.from_list
|> iterator.fold(
from: 0,
- with: fn(acc, _element) { acc + int.random(min, max) },
+ with: fn(accumulator, _element) { accumulator + int.random(min, max) },
)
|> fn(sum) { sum / iterations }
|> fn(sum) {