Commit graph

5 commits

Author SHA1 Message Date
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
Philip Chimento
e628307c1e Ensure _Results_Actual folder is created in git checkout
The tests always fail for me the first time I run them because this folder
doesn't exist. This adds a dummy file, traditionally called .gitkeep, so
that git will create the folder on checkout.
2022-04-07 21:33:43 -07:00
Graham Nelson
534d52dde7 Added heterogeneous trees to Foundation 2020-04-17 19:18:40 +01:00
Graham Nelson
750eb8a17f Added semantic versions to foundation 2020-03-22 22:44:26 +00:00
Graham Nelson
d57a1dc13f Initial commit 2019-02-04 22:26:45 +00:00