diff options
author | inoas <mail@inoas.com> | 2022-04-12 00:08:29 +0200 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2022-04-16 10:23:34 +0100 |
commit | 486ee7a8bb1638a3a3d84ae0fc7f7424b0ce5d12 (patch) | |
tree | 905b3d4a1a9c807fbe119cc147f9822209e43dd3 /test | |
parent | b14529894f84b127cf931014a4e30eed6cfa4648 (diff) | |
download | gleam_stdlib-486ee7a8bb1638a3a3d84ae0fc7f7424b0ce5d12.tar.gz gleam_stdlib-486ee7a8bb1638a3a3d84ae0fc7f7424b0ce5d12.zip |
fix tests
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/float_test.gleam | 7 | ||||
-rw-r--r-- | test/gleam/int_test.gleam | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/gleam/float_test.gleam b/test/gleam/float_test.gleam index edecc3c..6f923c5 100644 --- a/test/gleam/float_test.gleam +++ b/test/gleam/float_test.gleam @@ -1,6 +1,8 @@ import gleam/should import gleam/float import gleam/order +import gleam/list +import gleam/iterator pub fn parse_test() { "1.23" @@ -302,11 +304,12 @@ pub fn product_test() { } pub fn random_lower_boundary_test() { - let one_random_lower_boundary_test_set = { + let one_random_lower_boundary_test_set = fn(_acc, _e) { { float.random_uniform() >=. 0. } |> should.be_true() { float.random_uniform() <. 0. } |> should.be_false() + Nil } list.range(0, 100) |> iterator.from_list @@ -320,6 +323,7 @@ if erlang { |> should.be_true() { float.random_uniform() >=. 1. } |> should.be_false() + Nil } list.range(0, 100) @@ -337,6 +341,7 @@ if javascript { |> should.be_true() { float.random_uniform() >. 1. } |> should.be_false() + Nil } list.range(0, 100) diff --git a/test/gleam/int_test.gleam b/test/gleam/int_test.gleam index 28502ab..9fdd73e 100644 --- a/test/gleam/int_test.gleam +++ b/test/gleam/int_test.gleam @@ -2,7 +2,7 @@ import gleam/should import gleam/int import gleam/order import gleam/list -import gleam/iterator.{repeat} +import gleam/iterator pub fn absolute_value_test() { 123 |