Currently asserts in Solve are trying to compare generator object to a list.
Proposed fix:
#current
assert create_intervals({1, 2, 3, 4, 5, 7, 8, 12}) == [(1, 5), (7, 8), (12, 12)], "First"
#fixed
assert list(create_intervals({1, 2, 3, 4, 5, 7, 8, 12})) == [(1, 5), (7, 8), (12, 12)], "First"
Created at: 2019/03/05 17:05; Updated at: 2022/03/08 11:03