• Asserts in solve not working

Question related to mission Create Intervals (generator version)

 

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"