aboutsummaryrefslogtreecommitdiff
path: root/common/composite/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'common/composite/driver.cxx')
-rw-r--r--common/composite/driver.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/composite/driver.cxx b/common/composite/driver.cxx
index 51e6a26..e1dfef8 100644
--- a/common/composite/driver.cxx
+++ b/common/composite/driver.cxx
@@ -92,8 +92,9 @@ main (int argc, char* argv[])
result r (db->query<person> (query::name::first == "Joe"));
- assert (r.size () == 1);
+ assert (!r.empty ());
assert (*r.begin () == p);
+ assert (size (r) == 1);
t.commit ();
}
@@ -105,8 +106,9 @@ main (int argc, char* argv[])
result r (db->query<person> (query::name::flags::alias));
- assert (r.size () == 1);
+ assert (!r.empty ());
assert (*r.begin () == p);
+ assert (size (r) == 1);
t.commit ();
}