From 3232e823c04ec7cc8b56cb40c43370e3bbff45fa Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Tue, 17 Sep 2019 22:13:52 +0100 Subject: Update stdlib CHANGELOG --- CHANGELOG.md | 4 +++- test/gleam/any_test.gleam | 23 ----------------------- 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 -- cgit v1.2.3