aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/dynamic_test.gleam8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam
index d35c3d0..1bfc255 100644
--- a/test/gleam/dynamic_test.gleam
+++ b/test/gleam/dynamic_test.gleam
@@ -802,4 +802,12 @@ pub fn decode2_test() {
|> dynamic.from
|> decoder
|> should.equal(Ok(Two(1, 2.0)))
+
+ #(1.3, 2)
+ |> dynamic.from
+ |> decoder
+ |> should.equal(Error([
+ DecodeError(expected: "Int", found: "Float", path: ["0"]),
+ DecodeError(expected: "Float", found: "Int", path: ["1"]),
+ ]))
}