inweb-bootstrap/foundation-test
Philip Chimento 436901adb6 Fix semver comparison with different numbers of prerelease elements
By my reading of the semantic versioning spec, the sense of the comparison
of the number of prerelease version segments has to be reversed when one
of those numbers is zero.

In other words, zero prerelease segments takes precedence over any nonzero
number, but any nonzero number takes precedence over any lower nonzero
number.

Example given in the specification:
1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta <
  1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0.

I had two failing test cases in foundation-test; in one case, the blessed
output seemed to be wrong, whereas the other case made this fix necessary.
2022-04-07 22:34:51 -07:00
..
Sections Refactoring Foundation::start 2020-07-05 15:33:00 +01:00
Tests Fix semver comparison with different numbers of prerelease elements 2022-04-07 22:34:51 -07:00
.gitignore Revised to fix gitignore issues 2019-02-05 18:57:32 +00:00
Contents.w Tidied up metadata 2019-03-16 17:36:44 +00:00
foundation-test.mk New file-system separator character convention, makefile includes foundation-test 2020-07-06 23:01:05 +01:00
versions.txt Version numbering change 2019-02-24 22:00:21 +00:00