Skip to content

Commit

Permalink
add test for chunker
Browse files Browse the repository at this point in the history
  • Loading branch information
devries committed Nov 20, 2024
1 parent 8cff83e commit 50be920
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/aoc2024_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ pub fn solution_or_error_test() {
aoc_utils.solution_or_error(Error("This is bad"))
|> should.equal("ERROR: This is bad")
}

pub fn chunk_up_test() {
["aaa", "bbb", "ccc", "", "ddd", "eee", "", "", "fff"]
|> aoc_utils.chunk_around_empty_strings()
|> should.equal([["aaa", "bbb", "ccc"], ["ddd", "eee"], ["fff"]])
}

0 comments on commit 50be920

Please sign in to comment.