aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/standard-version/driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/standard-version/driver.cxx b/tests/standard-version/driver.cxx
index bd20c40..3bc1d31 100644
--- a/tests/standard-version/driver.cxx
+++ b/tests/standard-version/driver.cxx
@@ -49,7 +49,7 @@ version (const string& s,
assert (r == v);
- if (r.epoch == 0 && r.revision == 0)
+ if (r.epoch == 1 && r.revision == 0)
{
standard_version v (r.version,
r.snapshot ()
@@ -80,7 +80,7 @@ version (const string& s,
{
auto max_ver = [&v] (char c) -> string
{
- string e (v.epoch != 0 ? '+' + to_string (v.epoch) + '-' : string ());
+ string e (v.epoch != 1 ? '+' + to_string (v.epoch) + '-' : string ());
return c == '~' || v.major () == 0
? e + to_string (v.major ()) + '.' + to_string (v.minor () + 1) + ".0-"