aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-01-01 23:27:58 +0000
committerLouis Pilfold <louis@lpil.uk>2022-01-01 23:27:58 +0000
commit9d40cdf444e0c73c192561658855f259cab6b507 (patch)
treee5caf8ed92dc4ae6cac4fda5d176e2d8117d118c /test
parent54d0699156d3d2ab7ac70c4099c7665381ba01b0 (diff)
downloadgleam_stdlib-9d40cdf444e0c73c192561658855f259cab6b507.tar.gz
gleam_stdlib-9d40cdf444e0c73c192561658855f259cab6b507.zip
Tuple decoders set path
Diffstat (limited to 'test')
-rw-r--r--test/gleam/dynamic_test.gleam10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam
index f6622aa..7d490dc 100644
--- a/test/gleam/dynamic_test.gleam
+++ b/test/gleam/dynamic_test.gleam
@@ -380,7 +380,7 @@ pub fn tuple2_test() {
|> dynamic.from
|> dynamic.tuple2(dynamic.int, dynamic.int)
|> should.equal(Error([
- DecodeError(expected: "Int", found: "String", path: []),
+ DecodeError(expected: "Int", found: "String", path: ["1"]),
]))
#(1, 2, 3)
@@ -417,7 +417,7 @@ pub fn tuple3_test() {
|> dynamic.from
|> dynamic.tuple3(dynamic.int, dynamic.int, dynamic.int)
|> should.equal(Error([
- DecodeError(expected: "Int", found: "String", path: []),
+ DecodeError(expected: "Int", found: "String", path: ["2"]),
]))
#(1, 2)
@@ -454,7 +454,7 @@ pub fn tuple4_test() {
|> dynamic.from
|> dynamic.tuple4(dynamic.int, dynamic.int, dynamic.int, dynamic.int)
|> should.equal(Error([
- DecodeError(expected: "Int", found: "String", path: []),
+ DecodeError(expected: "Int", found: "String", path: ["3"]),
]))
#(1, 2)
@@ -509,7 +509,7 @@ pub fn tuple5_test() {
dynamic.int,
)
|> should.equal(Error([
- DecodeError(expected: "Int", found: "String", path: []),
+ DecodeError(expected: "Int", found: "String", path: ["4"]),
]))
#(1, 2)
@@ -579,7 +579,7 @@ pub fn tuple6_test() {
dynamic.int,
)
|> should.equal(Error([
- DecodeError(expected: "Int", found: "String", path: []),
+ DecodeError(expected: "Int", found: "String", path: ["5"]),
]))
#(1, 2)