timj/perl-Number-Interval — pull request #1 by grahambell (2014-08-12 05:04:49+00:00)
Title: Two updates to the contains method

The first change is to make the contains method act as documented for ranges where the minimum and maximum values are the same. It looks like either this change should be applied, so that it does what it says, or the documentation could be updated to reflect the new behavior. (Single value ranges stringify to ==x which also implies they should match that value.) UKIRT fault 20131213.003 is still open due to the problem with single-value ranges.

While reading the contains method I also noticed that the conditions for a maximum-only interval didn't look quite right, so the second change is to introduce a test and fix for this.

I'm not sure whether the OMP depends on either of these things. I suspected it might use the single-value range feature, which was why I didn't close fault 20131213.003 already, but I hope it doesn't rely on the weird behavior for maximum-only intervals.