aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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) {