-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add impl for PartialOrd, Ord, reverse PartialEq (#27)
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 `IString`s of different `enum` variants for all tests, reverse comparisons, adding tests for `PartialOrd` and `Ord`).
- Loading branch information
1 parent
cef5246
commit d3bb992
Showing
1 changed file
with
202 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters