Lines Matching refs:stoul
13 TEST(StringUtilTest, stoul) {
16 EXPECT_EQ(0ul, benchmark::stoul("0", &pos));
21 EXPECT_EQ(7ul, benchmark::stoul("7", &pos));
26 EXPECT_EQ(135ul, benchmark::stoul("135", &pos));
32 EXPECT_EQ(0xFFFFFFFFul, benchmark::stoul("4294967295", &pos));
39 benchmark::stoul("18446744073709551615", &pos));
45 EXPECT_EQ(10ul, benchmark::stoul("1010", &pos, 2));
50 EXPECT_EQ(520ul, benchmark::stoul("1010", &pos, 8));
55 EXPECT_EQ(1010ul, benchmark::stoul("1010", &pos, 10));
60 EXPECT_EQ(4112ul, benchmark::stoul("1010", &pos, 16));
65 EXPECT_EQ(0xBEEFul, benchmark::stoul("BEEF", &pos, 16));
70 ASSERT_THROW(std::ignore = benchmark::stoul("this is a test"),