Browse Source

test: speed up the Map unit test.

legacy
Sam Hocevar sam 11 years ago
parent
commit
13d3c9d828
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      test/unit/map.cpp

+ 3
- 3
test/unit/map.cpp View File

@@ -36,13 +36,13 @@ LOLUNIT_FIXTURE(MapTest)
{
Map<int, int> map;

for (int i = 0; i < 100000; i++)
for (int i = 0; i < 1000; i++)
map[i] = -1;

for (int i = 0; i < 100000; i++)
for (int i = 0; i < 1000; i++)
map[i] = i;

for (int i = 0; i < 100000; i++)
for (int i = 0; i < 1000; i++)
LOLUNIT_ASSERT_EQUAL(map[i], i);
}



Loading…
Cancel
Save