void MyMap::insert(int key, int value) { // Oops! The map entry is default-initialized, // the second parameter is not used. internal_map_[key]; } | TEST(MyMapTest, Insert) { MyMap my_map; my_map.insert(1, 0);
// This passes! EXPECT_EQ(my_map.get(1), 0); } |