aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-01-09 18:48:54 +0000
committerLouis Pilfold <louis@lpil.uk>2022-01-09 18:48:54 +0000
commitb68260179e2e17930dfb0604fc2b26355fc79173 (patch)
tree90a716e8c66645df691fb48de29f20d8a6e8dba5 /test
parentec3d3abbdf94e7bc998fbf90919627779386c30e (diff)
downloadgleam_stdlib-b68260179e2e17930dfb0604fc2b26355fc79173.tar.gz
gleam_stdlib-b68260179e2e17930dfb0604fc2b26355fc79173.zip
Curry result
Diffstat (limited to 'test')
-rw-r--r--test/gleam/dynamic_test.gleam4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam
index b94db28..f08f097 100644
--- a/test/gleam/dynamic_test.gleam
+++ b/test/gleam/dynamic_test.gleam
@@ -745,14 +745,14 @@ pub fn result_test() {
|> dynamic.from
|> dynamic.result(ok: dynamic.int, error: dynamic.string)
|> should.equal(Error([
- DecodeError(expected: "Int", found: "String", path: []),
+ DecodeError(expected: "Int", found: "String", path: ["ok"]),
]))
Error(1)
|> dynamic.from
|> dynamic.result(ok: dynamic.int, error: dynamic.string)
|> should.equal(Error([
- DecodeError(expected: "String", found: "Int", path: []),
+ DecodeError(expected: "String", found: "Int", path: ["error"]),
]))
1