diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-23 13:42:44 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-05-24 13:59:09 +0300 |
commit | f3f09dac499f7e122864eef2555ae8b66ef71975 (patch) | |
tree | 627ebf9b642c757f51d096b49fd529943c05636c /tests/standard-version/driver.cxx | |
parent | 086f8b6e68228c9081c15bee03975db4024114ad (diff) |
Increase standard and semantic versions major, minor, and patch max values up to 99999
Diffstat (limited to 'tests/standard-version/driver.cxx')
-rw-r--r-- | tests/standard-version/driver.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/standard-version/driver.cxx b/tests/standard-version/driver.cxx index 54fcfb8..87b6fa0 100644 --- a/tests/standard-version/driver.cxx +++ b/tests/standard-version/driver.cxx @@ -95,15 +95,15 @@ version (const string& s, : e + to_string (v.major () + 1) + ".0.0-"; }; - if (v.minor () != 999) + if (v.minor () != 99999) { standard_version_constraint c1 ("~" + s); standard_version_constraint c2 ('[' + s + ' ' + max_ver ('~') + ')'); assert (c1 == c2); } - if ((v.major () == 0 && v.minor () != 999) || - (v.major () != 0 && v.major () != 999)) + if ((v.major () == 0 && v.minor () != 99999) || + (v.major () != 0 && v.major () != 99999)) { standard_version_constraint c1 ("^" + s); standard_version_constraint c2 ('[' + s + ' ' + max_ver ('^') + ')'); @@ -160,9 +160,12 @@ version (const string& s, // -sn output 'y' for snapshot, 'n' otherwise // -fn output 'y' for final, 'n' otherwise // -// -cm output 0 if versions are equal, -1 if the first one is less, 1 otherwise +// -cm output 0 if versions are equal, -1 if the first one is less, 1 +// otherwise +// // -cr create version constraints from stdin lines, optionally using the // dependent version, and print them to stdout +// // -sf output 'y' if version satisfies constraint, 'n' otherwise // // If no options are specified, then create versions from stdin lines, and |