Files
STLite-ACM-2024/map/test/test_basic.cpp
2024-03-26 04:52:12 +00:00

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);
}