Skip to content

Commit

Permalink
Fix array tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert authored and lpil committed Nov 26, 2024
1 parent ddc15d3 commit 3c7dd0d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/pog_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,14 @@ pub fn bytea_test() {
pub fn array_test() {
let decoder = dynamic.list(dynamic.string)
start_default()
|> assert_roundtrip(["black"], "text[]", pog.array, decoder)
|> assert_roundtrip(["gray"], "text[]", pog.array, decoder)
|> assert_roundtrip(["gray", "black"], "text[]", pog.array, decoder)
|> assert_roundtrip(["black"], "text[]", pog.array(_, pog.text), decoder)
|> assert_roundtrip(["gray"], "text[]", pog.array(_, pog.text), decoder)
|> assert_roundtrip(
["gray", "black"],
"text[]",
pog.array(_, pog.text),
decoder,
)
|> pog.disconnect
}

Expand Down

0 comments on commit 3c7dd0d

Please sign in to comment.