diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-27 19:36:58 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-04-28 12:08:08 +0300 |
commit | 5bb170316ebad036ee5b8b18dee7ce3d09c72df4 (patch) | |
tree | acb30c55637b40e7fb4ff9679cb9187ffa410c68 /tests/standard-version/driver.cxx | |
parent | dad361a3415e88475a78d1b2702133629fb6e548 (diff) |
Add support for standard version earliest pre-release
Diffstat (limited to 'tests/standard-version/driver.cxx')
-rw-r--r-- | tests/standard-version/driver.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/standard-version/driver.cxx b/tests/standard-version/driver.cxx index d301c8c..e6a21ef 100644 --- a/tests/standard-version/driver.cxx +++ b/tests/standard-version/driver.cxx @@ -17,9 +17,9 @@ using namespace butl; // Create standard version from string, and also test another ctors. // static standard_version -version (const string& s) +version (const string& s, bool allow_earliest = true) { - standard_version r (s); + standard_version r (s, allow_earliest); try { @@ -28,7 +28,8 @@ version (const string& s) r.snapshot () ? r.string_snapshot () : string (), - r.revision); + r.revision, + allow_earliest); assert (r == v); @@ -37,12 +38,13 @@ version (const string& s) standard_version v (r.version, r.snapshot () ? r.string_snapshot () - : string ()); + : string (), + allow_earliest); assert (r == v); if (!r.snapshot ()) { - standard_version v (r.version); + standard_version v (r.version, allow_earliest); assert (r == v); } } @@ -53,7 +55,8 @@ version (const string& s) r.version, r.snapshot_sn, r.snapshot_id, - r.revision); + r.revision, + allow_earliest); assert (r == v); } |