Skip to content

Commit

Permalink
Add case for partial chunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Apr 6, 2024
1 parent 990cfb8 commit f1e40e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,10 @@ def test_chunks(self):
[("a", "b", "c"), ("d", "e", "f")],
)

self.assertEqual(
list(chunks("ABCDEFG", 3)),
[("A", "B", "C"), ("D", "E", "F"), ("G",)],
)

def test_sql_array(self):
self.assertEqual(sql_array((3, 7, 9, 11)), "{3, 7, 9, 11}")

0 comments on commit f1e40e5

Please sign in to comment.