diff options
author | Louis Pilfold <louis@lpil.uk> | 2021-09-09 19:55:07 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2021-09-09 19:55:07 +0100 |
commit | bc811f914387b05c34836b2be07697ae52ce6347 (patch) | |
tree | 2abb97f8a8e5b4acfb72362d6def1dd6c06ffcf5 /test | |
parent | 014cf4a208b254d2172f318147edccc70fc1e49d (diff) | |
download | gleam_stdlib-bc811f914387b05c34836b2be07697ae52ce6347.tar.gz gleam_stdlib-bc811f914387b05c34836b2be07697ae52ce6347.zip |
Remove dynamic thunk function
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/dynamic_test.gleam | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam index 0d8dd09..3235fe6 100644 --- a/test/gleam/dynamic_test.gleam +++ b/test/gleam/dynamic_test.gleam @@ -130,35 +130,6 @@ if javascript { } if erlang { - // TODO: remove - pub fn thunk_test() { - fn() { 1 } - |> dynamic.from - |> dynamic.thunk - |> should.be_ok - - fn() { 1 } - |> dynamic.from - |> dynamic.thunk - |> result.map(fn(f) { f() }) - |> should.equal(Ok(dynamic.from(1))) - - fn(x) { x } - |> dynamic.from - |> dynamic.thunk - |> should.be_error - - 1 - |> dynamic.from - |> dynamic.thunk - |> should.be_error - - [] - |> dynamic.from - |> dynamic.thunk - |> should.be_error - } - pub fn bool_test() { True |> dynamic.from |