evnu / closed_intervals

Storing a set of closed intervals
Apache License 2.0
0 stars 1 forks source link

Construct from leafs and list #4

Closed evnu closed 5 years ago

evnu commented 5 years ago

This pull request implements from_leaf_intervals/1,2 to reconstruct a ClosedInterval from intervals generated by leaf_intervals/1. It also adds property tests to ensure that we can construct ClosedInterval from both a list of intervals, and from the output of to_list/1. The latter needed a fix to make that work.