瀏覽代碼

test: speed up the Map unit test.

legacy
Sam Hocevar sam 11 年之前
父節點
當前提交
13d3c9d828
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      test/unit/map.cpp

+ 3
- 3
test/unit/map.cpp 查看文件

@@ -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…
取消
儲存