Lines Matching refs:IsInt

185   EXPECT_FALSE(IsInt<int32_t>(1, -2));  in TEST()
186 EXPECT_TRUE(IsInt<int32_t>(1, -1)); in TEST()
187 EXPECT_TRUE(IsInt<int32_t>(1, 0)); in TEST()
188 EXPECT_FALSE(IsInt<int32_t>(1, 1)); in TEST()
189 EXPECT_FALSE(IsInt<int32_t>(4, -9)); in TEST()
190 EXPECT_TRUE(IsInt<int32_t>(4, -8)); in TEST()
191 EXPECT_TRUE(IsInt<int32_t>(4, 7)); in TEST()
192 EXPECT_FALSE(IsInt<int32_t>(4, 8)); in TEST()
193 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
194 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
195 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
196 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
200 EXPECT_FALSE(IsInt<int64_t>(1, -2)); in TEST()
201 EXPECT_TRUE(IsInt<int64_t>(1, -1)); in TEST()
202 EXPECT_TRUE(IsInt<int64_t>(1, 0)); in TEST()
203 EXPECT_FALSE(IsInt<int64_t>(1, 1)); in TEST()
204 EXPECT_FALSE(IsInt<int64_t>(4, -9)); in TEST()
205 EXPECT_TRUE(IsInt<int64_t>(4, -8)); in TEST()
206 EXPECT_TRUE(IsInt<int64_t>(4, 7)); in TEST()
207 EXPECT_FALSE(IsInt<int64_t>(4, 8)); in TEST()
208 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
209 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
210 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
211 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
212 EXPECT_FALSE(IsInt<int64_t>(32, kInt32MinMinus1)); in TEST()
213 EXPECT_FALSE(IsInt<int64_t>(32, kInt32MaxPlus1)); in TEST()
214 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::min())); in TEST()
215 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::max())); in TEST()
216 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::min())); in TEST()
217 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::max())); in TEST()
220 static_assert(!IsInt<1, int32_t>(-2), "TestIsInt32#1");
221 static_assert(IsInt<1, int32_t>(-1), "TestIsInt32#2");
222 static_assert(IsInt<1, int32_t>(0), "TestIsInt32#3");
223 static_assert(!IsInt<1, int32_t>(1), "TestIsInt32#4");
224 static_assert(!IsInt<4, int32_t>(-9), "TestIsInt32#5");
225 static_assert(IsInt<4, int32_t>(-8), "TestIsInt32#6");
226 static_assert(IsInt<4, int32_t>(7), "TestIsInt32#7");
227 static_assert(!IsInt<4, int32_t>(8), "TestIsInt32#8");
228 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#9");
229 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#10");
230 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#11");
231 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#12");
233 static_assert(!IsInt<1, int64_t>(-2), "TestIsInt64#1");
234 static_assert(IsInt<1, int64_t>(-1), "TestIsInt64#2");
235 static_assert(IsInt<1, int64_t>(0), "TestIsInt64#3");
236 static_assert(!IsInt<1, int64_t>(1), "TestIsInt64#4");
237 static_assert(!IsInt<4, int64_t>(-9), "TestIsInt64#5");
238 static_assert(IsInt<4, int64_t>(-8), "TestIsInt64#6");
239 static_assert(IsInt<4, int64_t>(7), "TestIsInt64#7");
240 static_assert(!IsInt<4, int64_t>(8), "TestIsInt64#8");
241 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#9");
242 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#10");
243 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#11");
244 static_assert(IsInt<32, int64_t>(std::numeric_limits<int32_t>::max()), "TestIsInt64#12");
245 static_assert(!IsInt<32, int64_t>(kInt32MinMinus1), "TestIsInt64#13");
246 static_assert(!IsInt<32, int64_t>(kInt32MaxPlus1), "TestIsInt64#14");
247 static_assert(!IsInt<63, int64_t>(std::numeric_limits<int64_t>::min()), "TestIsInt64#15");
248 static_assert(!IsInt<63, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsInt64#16");
249 static_assert(IsInt<64, int64_t>(std::numeric_limits<int64_t>::min()), "TestIsInt64#17");
250 static_assert(IsInt<64, int64_t>(std::numeric_limits<int64_t>::max()), "TestIsInt64#18");