diff options
author | Sebastian Geerken <devnull@localhost> | 2013-03-05 00:27:05 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-03-05 00:27:05 +0100 |
commit | 49ad0b5252190ffbfb4511131af2032f7f341a60 (patch) | |
tree | d2de69d360e2feff519835cc1fef0d8b3217afc1 /test/containers.cc | |
parent | 0128efee08d42bd4efa1fda3bc12664b216712ae (diff) |
Implemented iterators for Vector.
Diffstat (limited to 'test/containers.cc')
-rw-r--r-- | test/containers.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/containers.cc b/test/containers.cc index 661f68d6..059125ac 100644 --- a/test/containers.cc +++ b/test/containers.cc @@ -36,10 +36,24 @@ void testHashTable () puts (h.toString()); } +void testVector () +{ + puts ("--- testVector ---"); + + Vector<String> v (true, 1); + + v.put (new String ("one")); + v.put (new String ("two")); + v.put (new String ("three")); + + puts (v.toString()); +} + int main (int argc, char *argv[]) { testHashSet (); testHashTable (); + testVector (); return 0; } |