aboutsummaryrefslogtreecommitdiff
path: root/tests/standard-version/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-29 08:01:41 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-29 14:46:13 +0300
commit332c4e09b11b010a6ad50468230758d0874dbd60 (patch)
tree40b4b8a07269a1e4733f7c94242752c8c00a275d /tests/standard-version/driver.cxx
parentdb275fa010229b26086f75f0dd533fdfce8751b4 (diff)
Add support for stub standard version
Diffstat (limited to 'tests/standard-version/driver.cxx')
-rw-r--r--tests/standard-version/driver.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/standard-version/driver.cxx b/tests/standard-version/driver.cxx
index 86d9621..677ea8e 100644
--- a/tests/standard-version/driver.cxx
+++ b/tests/standard-version/driver.cxx
@@ -17,9 +17,11 @@ using namespace butl;
// Create standard version from string, and also test another ctors.
//
static standard_version
-version (const string& s, bool allow_earliest = true)
+version (const string& s,
+ standard_version::flags f =
+ standard_version::allow_earliest | standard_version::allow_stub)
{
- standard_version r (s, allow_earliest);
+ standard_version r (s, f);
try
{
@@ -29,7 +31,7 @@ version (const string& s, bool allow_earliest = true)
? r.string_snapshot ()
: string (),
r.revision,
- allow_earliest);
+ f);
assert (r == v);
@@ -39,12 +41,12 @@ version (const string& s, bool allow_earliest = true)
r.snapshot ()
? r.string_snapshot ()
: string (),
- allow_earliest);
+ f);
assert (r == v);
if (!r.snapshot ())
{
- standard_version v (r.version, allow_earliest);
+ standard_version v (r.version, f);
assert (r == v);
}
}
@@ -56,7 +58,7 @@ version (const string& s, bool allow_earliest = true)
r.snapshot_sn,
r.snapshot_id,
r.revision,
- allow_earliest);
+ f);
assert (r == v);
}