Commit 22dea3aa authored by Florian Klemme's avatar Florian Klemme
Browse files

Coverage verbessern.

parent 82556f34
Pipeline #74 passed with stages
in 2 minutes and 7 seconds
......@@ -8,15 +8,17 @@ TEST(Map, access) {
m1['a'] = 5;
ASSERT_EQ(m1.size(), 1);
ASSERT_EQ(m1['a'], 5);
ASSERT_EQ(m1.at('a'), 5);
ASSERT_TRUE(m1.contains('a'));
ASSERT_FALSE(m1.contains('b'));
m1['b'] = 3;
ASSERT_EQ(m1.size(), 2);
ASSERT_EQ(m1['b'], 3);
ASSERT_EQ(m1.at('b'), 3);
ASSERT_TRUE(m1.contains('a'));
ASSERT_TRUE(m1.contains('b'));
ASSERT_ANY_THROW(m1.at('z')); // out of range
}
TEST(Map, erase) {
......
Supports Markdown
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