diff options
author | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-01-20 00:10:23 +0000 |
---|---|---|
committer | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-01-20 00:10:23 +0000 |
commit | c867ec6738039b29140ad48bdaa4c74a5d388f95 (patch) | |
tree | 22cd8538577e95a2a05b77f278416d3a7c0a51de /tests/Vector_Test.cpp | |
parent | 7256949051e022a475f6d5e7c7ec30ef0d3d464c (diff) | |
download | ATCD-c867ec6738039b29140ad48bdaa4c74a5d388f95.tar.gz |
ChangeLogTag: Sun Jan 20 00:00:30 2002 UTC Don Hinton <dhinton@ieee.org>
Diffstat (limited to 'tests/Vector_Test.cpp')
-rw-r--r-- | tests/Vector_Test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/Vector_Test.cpp b/tests/Vector_Test.cpp index 0721b23c543..be883c5fcf6 100644 --- a/tests/Vector_Test.cpp +++ b/tests/Vector_Test.cpp @@ -26,15 +26,15 @@ typedef size_t DATA; typedef ACE_Vector<DATA> VECTOR; typedef ACE_Vector<DATA>::Iterator ITERATOR; -const int TOP = 100; -const int LEFT = 10; +const size_t TOP = 100; +const size_t LEFT = 10; int main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT ("Vector_Test")); VECTOR vector; - int i; + size_t i; for (i = 0; i < TOP; ++i) vector.push_back (i); @@ -44,7 +44,7 @@ int main (int, ACE_TCHAR *[]) ACE_TEXT ("Size: %d\n"), vector.size ())); - for (i = (TOP - 1); i >= 0; --i) + for (i = 0; i < TOP; ++i) ACE_ASSERT (vector[i] == i); for (i = 0; i < (TOP - LEFT); ++i) |