aboutsummaryrefslogtreecommitdiff
path: root/test/notsosimplevector.cc
diff options
context:
space:
mode:
authorsgeerken <devnull@localhost>2012-07-11 19:04:12 +0200
committersgeerken <devnull@localhost>2012-07-11 19:04:12 +0200
commitfa1c054f17f6c71a5314e4c3e638c15aa33ec09c (patch)
tree31d8b687d2ff7843b8b5aab0d473116d4df32184 /test/notsosimplevector.cc
parent3cef8224ed1a1a3267adf5a5d3f1bdcf4c1b5eca (diff)
NotSoSimpleVector is now working in the intended way.
Diffstat (limited to 'test/notsosimplevector.cc')
-rw-r--r--test/notsosimplevector.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/notsosimplevector.cc b/test/notsosimplevector.cc
index 8d0d2657..228734ee 100644
--- a/test/notsosimplevector.cc
+++ b/test/notsosimplevector.cc
@@ -3,11 +3,18 @@
static void print (lout::misc::NotSoSimpleVector<int> *v)
{
for (int i = 0; i < v->size(); i++) {
+ // Uncomment für debugging, after making the respective members public.
+ //if (v->startExtra != -1 && i == v->startExtra + v->numExtra)
+ // printf (" ]");
if (i > 0)
printf (", ");
+ //if (i == v->startExtra)
+ // printf ("[ ");
+
printf ("%d", v->get(i));
}
- printf ("\n");
+
+ printf (" (%d elements)\n", v->size ());
}
int main (int argc, char *argv[])