diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-28 09:54:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-28 09:54:19 +0200 |
commit | e61fb61f6406db4d1b3b33eb72007ba22efb44bd (patch) | |
tree | 0dff61043ebda523eff7451b8f210d395ef4b9f0 /common/composite | |
parent | 3de8e4843bc85f9fc6e63c1a4fea6b57ff0351b6 (diff) |
Recode tests to work with implementations lacking result::size()
Diffstat (limited to 'common/composite')
-rw-r--r-- | common/composite/driver.cxx | 6 |
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 (); } |