• Home
  • Raw
  • Download

Lines Matching refs:IsInt

158   EXPECT_FALSE(IsInt<int32_t>(1, -2));  in TEST()
159 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
160 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
161 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
162 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
163 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
164 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
165 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
166 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
167 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
168 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
169 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
173 EXPECT_FALSE(IsInt<int64_t>(1, -2)); in TEST()
174 EXPECT_TRUE(IsInt<int64_t>(1, -1)); in TEST()
175 EXPECT_TRUE(IsInt<int64_t>(1, 0)); in TEST()
176 EXPECT_FALSE(IsInt<int64_t>(1, 1)); in TEST()
177 EXPECT_FALSE(IsInt<int64_t>(4, -9)); in TEST()
178 EXPECT_TRUE(IsInt<int64_t>(4, -8)); in TEST()
179 EXPECT_TRUE(IsInt<int64_t>(4, 7)); in TEST()
180 EXPECT_FALSE(IsInt<int64_t>(4, 8)); in TEST()
181 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
182 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
183 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
184 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
185 EXPECT_FALSE(IsInt<int64_t>(32, kInt32MinMinus1)); in TEST()
186 EXPECT_FALSE(IsInt<int64_t>(32, kInt32MaxPlus1)); in TEST()
187 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::min())); in TEST()
188 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::max())); in TEST()
189 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::min())); in TEST()
190 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::max())); in TEST()
193 static_assert(!IsInt<1, int32_t>(-2), "TestIsInt32#1");
194 static_assert(IsInt<1, int32_t>(-1), "TestIsInt32#2");
195 static_assert(IsInt<1, int32_t>(0), "TestIsInt32#3");
196 static_assert(!IsInt<1, int32_t>(1), "TestIsInt32#4");
197 static_assert(!IsInt<4, int32_t>(-9), "TestIsInt32#5");
198 static_assert(IsInt<4, int32_t>(-8), "TestIsInt32#6");
199 static_assert(IsInt<4, int32_t>(7), "TestIsInt32#7");
200 static_assert(!IsInt<4, int32_t>(8), "TestIsInt32#8");
201 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#9");
202 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#10");
203 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#11");
204 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#12");
206 static_assert(!IsInt<1, int64_t>(-2), "TestIsInt64#1");
207 static_assert(IsInt<1, int64_t>(-1), "TestIsInt64#2");
208 static_assert(IsInt<1, int64_t>(0), "TestIsInt64#3");
209 static_assert(!IsInt<1, int64_t>(1), "TestIsInt64#4");
210 static_assert(!IsInt<4, int64_t>(-9), "TestIsInt64#5");
211 static_assert(IsInt<4, int64_t>(-8), "TestIsInt64#6");
212 static_assert(IsInt<4, int64_t>(7), "TestIsInt64#7");
213 static_assert(!IsInt<4, int64_t>(8), "TestIsInt64#8");
214 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#9");
215 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#10");
216 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#11");
217 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#12");
218 static_assert(!IsInt<32, int64_t>(kInt32MinMinus1), "TestIsInt64#13");
219 static_assert(!IsInt<32, int64_t>(kInt32MaxPlus1), "TestIsInt64#14");
220 static_assert(!IsInt<63, int64_t>(std::numeric_limits<int64_t>::min()), "TestIsInt64#15");
221 static_assert(!IsInt<63, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsInt64#16");
222 static_assert(IsInt<64, int64_t>(std::numeric_limits<int64_t>::min()), "TestIsInt64#17");
223 static_assert(IsInt<64, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsInt64#18");