aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-09-17 22:13:52 +0100
committerLouis Pilfold <louis@lpil.uk>2019-09-17 22:20:26 +0100
commit3232e823c04ec7cc8b56cb40c43370e3bbff45fa (patch)
treeda15ca83ac6b5cb36d621b22811ff53100c52347
parent6fe389492ce7d788c1177b3ea76717ee6c274347 (diff)
downloadgleam_stdlib-3232e823c04ec7cc8b56cb40c43370e3bbff45fa.tar.gz
gleam_stdlib-3232e823c04ec7cc8b56cb40c43370e3bbff45fa.zip
Update stdlib CHANGELOG
-rw-r--r--CHANGELOG.md4
-rw-r--r--test/gleam/any_test.gleam23
2 files changed, 3 insertions, 24 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 34b7b9d..4cfb44d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,10 +8,12 @@
now only work on Ints.
- `list:sort`'s performance has been slightly optimised.
- The `float` module gains a `compare` function.
-- `any:tuple` has been renamed `any:pair`.
+- `any.tuple` has been renamed `any.pair`.
- The `tuple` module has been renamed to `pair` and has a `Pair` type.
- `pair.fetch` has been replaced with `list.key_find`.
- `triple` module has been created with type `Triple`.
+- The error type for `float.parse`, `int.parse`, `list.head`, `list.tail`,
+ `list.find`, `list.at`, `map.fetch`, and `map.update` is now `Nil`.
## v0.3.1 - 2019-08-08
diff --git a/test/gleam/any_test.gleam b/test/gleam/any_test.gleam
index b8f9e65..af184d8 100644
--- a/test/gleam/any_test.gleam
+++ b/test/gleam/any_test.gleam
@@ -72,29 +72,6 @@ pub fn float_test() {
|> expect.equal(_, Error("Expected a Float, got `[]`"))
}
-// TODO
-// pub fn atom_test() {
-// make an atom here
-// |> any.from
-// |> atom
-// |> expect.equal(_, Ok(""))
-
-// make an atom here
-// |> any.from
-// |> atom
-// |> expect.equal(_, Ok("ok"))
-
-// 1
-// |> any.from
-// |> atom
-// |> expect.is_error
-
-// []
-// |> any.from
-// |> atom
-// |> expect.is_error
-// }
-
pub fn thunk_test() {
fn() { 1 }
|> any.from