aboutsummaryrefslogtreecommitdiff
path: root/tests/semantic-version/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-05-23 13:42:44 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-05-24 13:59:09 +0300
commitf3f09dac499f7e122864eef2555ae8b66ef71975 (patch)
tree627ebf9b642c757f51d096b49fd529943c05636c /tests/semantic-version/driver.cxx
parent086f8b6e68228c9081c15bee03975db4024114ad (diff)
Increase standard and semantic versions major, minor, and patch max values up to 99999
Diffstat (limited to 'tests/semantic-version/driver.cxx')
-rw-r--r--tests/semantic-version/driver.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/semantic-version/driver.cxx b/tests/semantic-version/driver.cxx
index 9ffe671..bcc0cc2 100644
--- a/tests/semantic-version/driver.cxx
+++ b/tests/semantic-version/driver.cxx
@@ -73,12 +73,12 @@ main ()
// Numeric representation.
//
- // AAABBBCCC0000
- assert (semver ( 10020030000ULL) == semver (1, 2, 3));
- assert (semver ( 9999999990000ULL, ".4") == semver (999, 999, 999, ".4"));
- try { semver v ( 10020030001ULL); assert (false);} catch (failed) {}
- try { semver v (10000020030000ULL); assert (false);} catch (failed) {}
- assert (semver (1, 2, 3).numeric () == 10020030000ULL);
- assert (semver (999, 999, 999, ".4").numeric () == 9999999990000ULL);
- try { semver (9999, 0, 0).numeric (); assert (false);} catch (failed) {}
+ // AAAAABBBBBCCCCC0000
+ assert (semver ( 100002000030000ULL) == semver (1, 2, 3));
+ assert (semver ( 9999999999999990000ULL, ".4") == semver (99999, 99999, 99999, ".4"));
+ try { semver v ( 100002000030001ULL); assert (false);} catch (failed) {}
+ try { semver v (10000000200003000000ULL); assert (false);} catch (failed) {}
+ assert ( 100002000030000ULL == semver (1, 2, 3).numeric ());
+ assert ( 9999999999999990000ULL == semver (99999, 99999, 99999, ".4").numeric ());
+ try { semver (999999, 0, 0).numeric (); assert (false);} catch (failed) {}
}