aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2013-04-19 18:38:37 +0000
committercorvid <corvid@lavabit.com>2013-04-19 18:38:37 +0000
commit31cb72fdf49546055d77a85a6f6bda1e6faad705 (patch)
tree7aec6b43b3d4b97fa3ace90bf012b1b3c845a89a /test
parent794907e571d19dca3c2e093c5964c157ffbc6342 (diff)
trim some spaces
Diffstat (limited to 'test')
-rw-r--r--test/containers.cc12
-rw-r--r--test/unicode_test.cc2
2 files changed, 7 insertions, 7 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");
diff --git a/test/unicode_test.cc b/test/unicode_test.cc
index 31ede6ba..7c079305 100644
--- a/test/unicode_test.cc
+++ b/test/unicode_test.cc
@@ -34,6 +34,6 @@ int main (int argc, char *argv[])
s - t2 < t2len && (s = fl_utf8fwd (s + 1, t2, t2 + t2len)))
printf ("%3d -> U+%04x\n", (int)(s - t2),
decodeUtf8(s, t2len - (s - t2)));
-
+
return 0;
}