from matrigram import helper


def test_chunks():
    l = []
    for i in range(10):
        l.append(i)

    chunks = helper.chunks(l, 4)
    chunks_list = [chunk for chunk in chunks]

    assert chunks_list[0] == [0, 1, 2, 3]
    assert chunks_list[1] == [4, 5, 6, 7]
    assert chunks_list[2] == [8, 9]


def test_list_to_str():
    l = ['room1', 'room2', 'room3']

    assert helper.list_to_nice_str(l) == 'room1, room2, room3'

@@ -425,8 +425,143 @@
  room3'%0A
+%0A%0Adef test_list_to_nice_lines():%0A    l = %5B'room1', 'room2', 'room3'%5D%0A%0A    assert helper.list_to_nice_lines(l) == 'room1%5Cnroom2%5Cnroom3'%0A

Update helper tests