Parcourir la source

test: speed up the Map unit test.

legacy
Sam Hocevar sam il y a 11 ans
Parent
révision
13d3c9d828
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. +3
    -3
      test/unit/map.cpp

+ 3
- 3
test/unit/map.cpp Voir le fichier

@@ -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);
}



Chargement…
Annuler
Enregistrer