unascribed / FlexVer

A SemVer-compatible intuitive comparator for free-form versioning strings as seen in the wild, designed to sort versions like people do.
Creative Commons Zero v1.0 Universal
65 stars 10 forks source link

Implement #3 #10

Closed TheEpicBlock closed 1 year ago

TheEpicBlock commented 1 year ago

This implements the test vectors as outlined in #3 for all implementations except for dlang. I copied over all testcases I could find. All testcases succeed except for a-a < a, which was included in go's testcases but fails in all other implementations, I'm not sure what the correct behaviour is here.

Instead of the large int test being optional, it's in a separate file and implementations chose whether to include that file in their tests. This means that the large int test is fully enforced for those languages (so if it regresses you would notice).