This fixes ^0.1 ranges which regressed in PR#6. Also fixes a few others that were previously broken, and adds a comprehensive set of assertions to cover all the various types of ranges.
Note that there are still some broken cases (commented out in the test). ~1.2.x is wrong currently but I spent nearly 2 hours messing around with the logic in convert_dep() and still couldn't figure out how to get it working without breaking other ranges.
This fixes
^0.1ranges which regressed in PR#6. Also fixes a few others that were previously broken, and adds a comprehensive set of assertions to cover all the various types of ranges.Note that there are still some broken cases (commented out in the test).
~1.2.xis wrong currently but I spent nearly 2 hours messing around with the logic in convert_dep() and still couldn't figure out how to get it working without breaking other ranges.