From e61fb61f6406db4d1b3b33eb72007ba22efb44bd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 28 Mar 2011 09:54:19 +0200 Subject: Recode tests to work with implementations lacking result::size() --- common/composite/driver.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/composite') 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 (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 (query::name::flags::alias)); - assert (r.size () == 1); + assert (!r.empty ()); assert (*r.begin () == p); + assert (size (r) == 1); t.commit (); } -- cgit v1.1