summaryrefslogtreecommitdiff
path: root/test/containers.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/containers.cc')
-rw-r--r--test/containers.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/containers.cc b/test/containers.cc
index 40b2d8c8..993a299d 100644
--- a/test/containers.cc
+++ b/test/containers.cc
@@ -13,7 +13,7 @@ void testHashSet ()
h.put (new String ("one"));
h.put (new String ("two"));
h.put (new String ("three"));
-
+
puts (h.toString());
}
@@ -26,7 +26,7 @@ void testHashTable ()
h.put (new String ("one"), new Integer (1));
h.put (new String ("two"), new Integer (2));
h.put (new String ("three"), new Integer (3));
-
+
puts (h.toString());
h.put (new String ("one"), new Integer (4));
@@ -65,7 +65,7 @@ void testVector2 ()
v.insertSorted (new String ("three"));
puts (v.toString());
-
+
v.insertSorted (new String ("five"));
puts (v.toString());
@@ -78,14 +78,14 @@ void testVector2 ()
for (int b = 0; b < 2; b++) {
bool mustExist = b;
printf ("mustExist = %s\n", mustExist ? "true" : "false");
-
+
String k ("alpha");
printf (" '%s' -> %d\n", k.chars(), v.bsearch (&k, mustExist));
-
+
for (Iterator<String> it = v.iterator(); it.hasNext(); ) {
String *k1 = it.getNext();
printf (" '%s' -> %d\n", k1->chars(), v.bsearch (k1, mustExist));
-
+
char buf[64];
strcpy (buf, k1->chars());
strcat (buf, "-var");