15 lines
333 B
C++
15 lines
333 B
C++
#include <gtest/gtest.h>
|
|
#include "map.hpp"
|
|
|
|
TEST(BasicTests, GTestItSelf) {
|
|
// Expect two strings not to be equal.
|
|
EXPECT_STRNE("hello", "world");
|
|
// Expect equality.
|
|
EXPECT_EQ(7 * 6, 42);
|
|
}
|
|
|
|
TEST(BasicTests, ConstructorAndEmptySize) {
|
|
sjtu::map<int, int> map;
|
|
EXPECT_EQ(map.empty(), true);
|
|
EXPECT_EQ(map.size(), 0);
|
|
} |