Lines Matching refs:kOddMap
23 constexpr FlatMap<int, char, 5> kOddMap({{ variable
32 TEST(FlatMap, Size) { EXPECT_EQ(kOddMap.size(), static_cast<uint32_t>(5)); } in TEST()
71 EXPECT_TRUE(kOddMap.contains(0)); in TEST()
72 EXPECT_FALSE(kOddMap.contains(10)); in TEST()
77 for (const auto& item : kOddMap) { in TEST()
79 EXPECT_EQ(&item, kOddMap.find(item.first)); in TEST()
85 auto pair = kOddMap.equal_range(1); in TEST()
89 pair = kOddMap.equal_range(75); in TEST()
95 auto it = kOddMap.find(50); in TEST()
99 auto not_found = kOddMap.find(-1); in TEST()
100 EXPECT_EQ(kOddMap.cend(), not_found); in TEST()
104 EXPECT_EQ(-3, kOddMap.upper_bound(std::numeric_limits<int>::min())->first); in TEST()
105 EXPECT_EQ(-3, kOddMap.upper_bound(-123)->first); in TEST()
106 EXPECT_EQ(-3, kOddMap.upper_bound(-4)->first); in TEST()
110 EXPECT_EQ(0, kOddMap.upper_bound(-3)->first); in TEST()
111 EXPECT_EQ(0, kOddMap.upper_bound(-2)->first); in TEST()
112 EXPECT_EQ(0, kOddMap.upper_bound(-1)->first); in TEST()
116 EXPECT_EQ(1, kOddMap.upper_bound(0)->first); in TEST()
117 EXPECT_EQ('c', kOddMap.upper_bound(0)->second); in TEST()
118 EXPECT_EQ(50, kOddMap.upper_bound(1)->first); in TEST()
119 EXPECT_EQ('d', kOddMap.upper_bound(1)->second); in TEST()
120 EXPECT_EQ(50, kOddMap.upper_bound(2)->first); in TEST()
121 EXPECT_EQ(50, kOddMap.upper_bound(49)->first); in TEST()
122 EXPECT_EQ(100, kOddMap.upper_bound(51)->first); in TEST()
126 EXPECT_EQ(kOddMap.end(), kOddMap.upper_bound(100)); in TEST()
127 EXPECT_EQ(kOddMap.end(), kOddMap.upper_bound(2384924)); in TEST()
128 EXPECT_EQ(kOddMap.end(), in TEST()
129 kOddMap.upper_bound(std::numeric_limits<int>::max())); in TEST()
133 EXPECT_EQ(-3, kOddMap.lower_bound(std::numeric_limits<int>::min())->first); in TEST()
134 EXPECT_EQ(-3, kOddMap.lower_bound(-123)->first); in TEST()
135 EXPECT_EQ(-3, kOddMap.lower_bound(-4)->first); in TEST()
139 EXPECT_EQ(-3, kOddMap.lower_bound(-3)->first); in TEST()
140 EXPECT_EQ(0, kOddMap.lower_bound(-2)->first); in TEST()
141 EXPECT_EQ(0, kOddMap.lower_bound(-1)->first); in TEST()
145 EXPECT_EQ(0, kOddMap.lower_bound(0)->first); in TEST()
146 EXPECT_EQ('b', kOddMap.lower_bound(0)->second); in TEST()
147 EXPECT_EQ(1, kOddMap.lower_bound(1)->first); in TEST()
148 EXPECT_EQ('c', kOddMap.lower_bound(1)->second); in TEST()
149 EXPECT_EQ(50, kOddMap.lower_bound(2)->first); in TEST()
150 EXPECT_EQ(50, kOddMap.lower_bound(49)->first); in TEST()
151 EXPECT_EQ(100, kOddMap.lower_bound(51)->first); in TEST()
155 EXPECT_EQ(100, kOddMap.lower_bound(100)->first); in TEST()
156 EXPECT_EQ(kOddMap.end(), kOddMap.lower_bound(2384924)); in TEST()
157 EXPECT_EQ(kOddMap.end(), in TEST()
158 kOddMap.lower_bound(std::numeric_limits<int>::max())); in TEST()
162 for (const auto& item : kOddMap) { in TEST()