Commit 29748e75 authored by Kazunori Fujiwara's avatar Kazunori Fujiwara
Browse files

[3016] added 64bit counter test (it takes 10 seconds)

parent 0202fc5a
......@@ -73,6 +73,11 @@ TEST_F(CounterTest, incrementCounterItem) {
EXPECT_EQ(counter.get(ITEM1), 2);
EXPECT_EQ(counter.get(ITEM2), 4);
EXPECT_EQ(counter.get(ITEM3), 6);
for (long long int i = 0; i < 4294967306; i++) {
counter.inc(ITEM1);
}
EXPECT_EQ(counter.get(ITEM1), 4294967308); // 4294967306 + 2
}
TEST_F(CounterTest, invalidCounterItem) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment