aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-05-13 16:32:56 +0100
committerLouis Pilfold <louis@lpil.uk>2023-05-13 16:32:56 +0100
commitb0afebc99314f942a213aa645cedbd7d9f9a55fe (patch)
tree4a982260721b09f3cffa95c878c22683230eb86b /test
parent2442c67f83ae851f7d85d34fa2774369a578e2fe (diff)
downloadgleam_stdlib-b0afebc99314f942a213aa645cedbd7d9f9a55fe.tar.gz
gleam_stdlib-b0afebc99314f942a213aa645cedbd7d9f9a55fe.zip
Format
Diffstat (limited to 'test')
-rw-r--r--test/gleam/dynamic_test.gleam36
1 files changed, 6 insertions, 30 deletions
diff --git a/test/gleam/dynamic_test.gleam b/test/gleam/dynamic_test.gleam
index fbe750f..87eef32 100644
--- a/test/gleam/dynamic_test.gleam
+++ b/test/gleam/dynamic_test.gleam
@@ -545,22 +545,14 @@ pub fn tuple2_test() {
|> dynamic.from
|> dynamic.tuple2(dynamic.int, dynamic.int)
|> should.equal(Error([
- DecodeError(
- path: [],
- expected: "Tuple of 2 elements",
- found: "List",
- ),
+ DecodeError(path: [], expected: "Tuple of 2 elements", found: "List"),
]))
[]
|> dynamic.from
|> dynamic.tuple2(dynamic.int, dynamic.int)
|> should.equal(Error([
- DecodeError(
- path: [],
- expected: "Tuple of 2 elements",
- found: "List",
- ),
+ DecodeError(path: [], expected: "Tuple of 2 elements", found: "List"),
]))
}
@@ -625,11 +617,7 @@ pub fn tuple3_test() {
|> dynamic.from
|> dynamic.tuple3(dynamic.int, dynamic.int, dynamic.int)
|> should.equal(Error([
- DecodeError(
- path: [],
- expected: "Tuple of 3 elements",
- found: "List",
- ),
+ DecodeError(path: [], expected: "Tuple of 3 elements", found: "List"),
]))
1
@@ -703,11 +691,7 @@ pub fn tuple4_test() {
|> dynamic.from
|> dynamic.tuple4(dynamic.int, dynamic.int, dynamic.int, dynamic.int)
|> should.equal(Error([
- DecodeError(
- path: [],
- expected: "Tuple of 4 elements",
- found: "List",
- ),
+ DecodeError(path: [], expected: "Tuple of 4 elements", found: "List"),
]))
1
@@ -843,11 +827,7 @@ pub fn tuple5_test() {
dynamic.int,
)
|> should.equal(Error([
- DecodeError(
- path: [],
- expected: "Tuple of 5 elements",
- found: "List",
- ),
+ DecodeError(path: [], expected: "Tuple of 5 elements", found: "List"),
]))
1
@@ -1001,11 +981,7 @@ pub fn tuple6_test() {
dynamic.int,
)
|> should.equal(Error([
- DecodeError(
- path: [],
- expected: "Tuple of 6 elements",
- found: "List",
- ),
+ DecodeError(path: [], expected: "Tuple of 6 elements", found: "List"),
]))
1