This PR implements PartialOrd and Ord for IString, fixes #18, additionally adds more implementations for reverse comparisons (str = IString, as opposed to usual IString = str).
It adds an impl_cmp_as_str! macro which allows to list implementations easily by mentioning the trait name and pairs for which to implement the trait.
It also updates tests using macros to list more possible usage variants (comparing IStrings of different enum variants for all tests, reverse comparisons, adding tests for PartialOrd and Ord).
This PR implements
PartialOrd
andOrd
forIString
, fixes #18, additionally adds more implementations for reverse comparisons (str = IString
, as opposed to usualIString = str
).It adds an
impl_cmp_as_str!
macro which allows to list implementations easily by mentioning the trait name and pairs for which to implement the trait.It also updates tests using macros to list more possible usage variants (comparing
IString
s of differentenum
variants for all tests, reverse comparisons, adding tests forPartialOrd
andOrd
).