diff options
author | Louis Pilfold <louis@lpil.uk> | 2019-11-24 22:13:34 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2019-11-25 11:22:45 +0000 |
commit | 69b0e8e1abb78db55cbdbd8db3ba4fe75b743e60 (patch) | |
tree | 47eec11c69fecb4033b33bd0987992e51b41f49c /test/gleam/any_test.gleam | |
parent | 09bd0a89dd80500d99589646a738c45c9537091a (diff) | |
download | gleam_stdlib-69b0e8e1abb78db55cbdbd8db3ba4fe75b743e60.tar.gz gleam_stdlib-69b0e8e1abb78db55cbdbd8db3ba4fe75b743e60.zip |
Update for Gleam v0.5
Diffstat (limited to 'test/gleam/any_test.gleam')
-rw-r--r-- | test/gleam/any_test.gleam | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/test/gleam/any_test.gleam b/test/gleam/any_test.gleam index 21a10b5..dc0c859 100644 --- a/test/gleam/any_test.gleam +++ b/test/gleam/any_test.gleam @@ -4,7 +4,6 @@ import gleam/list import gleam/expect import gleam/result import gleam/map -import gleam/pair.{Pair} pub fn string_test() { "" @@ -188,34 +187,7 @@ pub fn list_test() { |> expect.is_error } -pub fn pair_test() { - Pair(1, []) - |> any.from - |> any.pair - |> expect.equal(_, Ok(Pair(any.from(1), any.from([])))) - - Pair("ok", "ok") - |> any.from - |> any.pair - |> expect.equal(_, Ok(Pair(any.from("ok"), any.from("ok")))) - - Pair(1, 2.0) - |> any.from - |> any.pair - |> result.then(_, fn(x) { - x - |> pair.first - |> any.int - |> result.map(_, fn(f) { Pair(f, pair.second(x)) }) - }) - |> result.then(_, fn(x) { - x - |> pair.second - |> any.float - |> result.map(_, fn(f) { Pair(pair.first(x), f) }) - }) - |> expect.equal(_, Ok(Pair(1, 2.0))) -} +// TODO: struct2 pub fn field_test() { let Ok(ok_atom) = atom.from_string("ok") |