Lines Matching refs:SmallMap
24 using ftl::SmallMap;
27 TEST(SmallMap, Example) { in TEST() argument
28 ftl::SmallMap<int, std::string, 3> map; in TEST()
47 EXPECT_EQ(map, SmallMap(ftl::init::map(-1, "xyz")(42, "???")(123, "abc"))); in TEST()
50 TEST(SmallMap, Construct) { in TEST() argument
53 SmallMap<int, std::string, 2> map; in TEST()
60 SmallMap<int, std::string, 5> map = in TEST()
67 EXPECT_EQ(map, SmallMap(ftl::init::map(123, "abc")(456, "def")(789, "ghi"))); in TEST()
71 SmallMap<int, std::string, 5> map = in TEST()
78 EXPECT_EQ(map, SmallMap(ftl::init::map(42, "???")(123, "abc")(-1, "\0\0\0"))); in TEST()
82 SmallMap map = ftl::init::map<int, std::string>(123, "abc")(-1)(42, 3u, '?'); in TEST()
84 static_assert(std::is_same_v<decltype(map), SmallMap<int, std::string, 3>>); in TEST()
89 EXPECT_EQ(map, SmallMap(ftl::init::map(-1, "\0\0\0")(42, "???")(123, "abc"))); in TEST()
93 TEST(SmallMap, Find) { in TEST() argument
96 const ftl::SmallMap map = ftl::init::map('a', 'A')('b', 'B')('c', 'C'); in TEST()
107 ftl::SmallMap map = ftl::init::map('a', 'A')('b', 'B')('c', 'C'); in TEST()
119 const ftl::SmallMap map = ftl::init::map('a', 'x')('b', 'y')('c', 'z'); in TEST()
124 ftl::SmallMap map = ftl::init::map('a', 'x')('b', 'y')('c', 'z'); in TEST()
127 EXPECT_EQ(map, SmallMap(ftl::init::map('c', 'Z')('b', 'y')('a', 'x'))); in TEST()