diff options
author | Louis Pilfold <louis@lpil.uk> | 2020-04-28 19:10:36 +0100 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2020-04-28 19:10:36 +0100 |
commit | f31235eb6b36bbab51651e3ea8733437c7e34600 (patch) | |
tree | 4336e62f6256406fa2b72189e63ba2899c8d4fe7 /test | |
parent | 3482f3071696598422fa02be98228e95f6d0376a (diff) | |
download | gleam_stdlib-f31235eb6b36bbab51651e3ea8733437c7e34600.tar.gz gleam_stdlib-f31235eb6b36bbab51651e3ea8733437c7e34600.zip |
Docs ready for v0.8
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/dynamic_test.gleam | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam index 080e6e7..2a777c7 100644 --- a/test/gleam/dynamic_test.gleam +++ b/test/gleam/dynamic_test.gleam @@ -19,12 +19,12 @@ pub fn string_test() { 1 |> dynamic.from |> dynamic.string - |> should.equal(_, Error("Expected a String, got `1`")) + |> should.equal(_, Error("Expected a string, got an int")) [] |> dynamic.from |> dynamic.string - |> should.equal(_, Error("Expected a String, got `[]`")) + |> should.equal(_, Error("Expected a string, got a list")) } pub fn int_test() { @@ -41,12 +41,12 @@ pub fn int_test() { 1.0 |> dynamic.from |> dynamic.int - |> should.equal(_, Error("Expected an Int, got `1.0`")) + |> should.equal(_, Error("Expected an int, got a float")) [] |> dynamic.from |> dynamic.int - |> should.equal(_, Error("Expected an Int, got `[]`")) + |> should.equal(_, Error("Expected an int, got a list")) } pub fn float_test() { @@ -63,12 +63,12 @@ pub fn float_test() { 1 |> dynamic.from |> dynamic.float - |> should.equal(_, Error("Expected a Float, got `1`")) + |> should.equal(_, Error("Expected a float, got an int")) [] |> dynamic.from |> dynamic.float - |> should.equal(_, Error("Expected a Float, got `[]`")) + |> should.equal(_, Error("Expected a float, got a list")) } pub fn thunk_test() { @@ -113,12 +113,12 @@ pub fn bool_test() { 1 |> dynamic.from |> dynamic.bool - |> should.equal(_, Error("Expected a Bool, got `1`")) + |> should.equal(_, Error("Expected a bool, got an int")) [] |> dynamic.from |> dynamic.bool - |> should.equal(_, Error("Expected a Bool, got `[]`")) + |> should.equal(_, Error("Expected a bool, got a list")) } pub fn atom_test() { |