summaryrefslogtreecommitdiff
path: root/cpp/test/Freeze/cursor/Client.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-03-08 13:47:12 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-03-08 13:47:12 +0000
commit2ee86c01bdce8ff4fb14120f9603e2d4382a32af (patch)
tree9ef026ad20f848bf3f4217eebd478804e3740f9f /cpp/test/Freeze/cursor/Client.cpp
parentadding constructors to holder classes (diff)
downloadice-2ee86c01bdce8ff4fb14120f9603e2d4382a32af.tar.bz2
ice-2ee86c01bdce8ff4fb14120f9603e2d4382a32af.tar.xz
ice-2ee86c01bdce8ff4fb14120f9603e2d4382a32af.zip
updates for Freeze.
Diffstat (limited to 'cpp/test/Freeze/cursor/Client.cpp')
-rw-r--r--cpp/test/Freeze/cursor/Client.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/test/Freeze/cursor/Client.cpp b/cpp/test/Freeze/cursor/Client.cpp
index 79ecd512782..1bd50da5e54 100644
--- a/cpp/test/Freeze/cursor/Client.cpp
+++ b/cpp/test/Freeze/cursor/Client.cpp
@@ -142,6 +142,23 @@ run(int argc, char* argv[], const DBEnvironmentPtr& dbEnv)
cursor->close();
cout << "ok" << endl;
+ cout << "testing contains... ";
+ try
+ {
+ for (j = alphabet.begin(); j != alphabet.end(); ++j)
+ {
+ k = KeyCodec::write(*j, instance);
+ test(db->contains(k));
+ }
+ }
+ catch(const DBException&)
+ {
+ test(false);
+ }
+ k = KeyCodec::write('0', instance);
+ test(!db->contains(k));
+ cout << "ok" << endl;
+
cout << "testing DB::getCursorAtKey... ";
k = KeyCodec::write('n', instance);
j = find(alphabet.begin(), alphabet.end(), 'n');