Commit c4a657d4 authored by miloyip's avatar miloyip

Fix ParseNumber_Integer test

parent a71f2e60
...@@ -111,11 +111,11 @@ TEST(Reader, ParseNumber_Integer) { ...@@ -111,11 +111,11 @@ TEST(Reader, ParseNumber_Integer) {
Reader reader; \ Reader reader; \
reader.Parse(s, h); \ reader.Parse(s, h); \
EXPECT_EQ(1u, h.step_); \ EXPECT_EQ(1u, h.step_); \
EXPECT_EQ(double(x), h.actual_); \ EXPECT_EQ(x, h.actual_); \
} }
TEST_INTEGER(ParseUintHandler, "0", 0); TEST_INTEGER(ParseUintHandler, "0", 0u);
TEST_INTEGER(ParseUintHandler, "123", 123); TEST_INTEGER(ParseUintHandler, "123", 123u);
TEST_INTEGER(ParseUintHandler, "2147483648", 2147483648u); // 2^31 - 1 (cannot be stored in int) TEST_INTEGER(ParseUintHandler, "2147483648", 2147483648u); // 2^31 - 1 (cannot be stored in int)
TEST_INTEGER(ParseUintHandler, "4294967295", 4294967295u); TEST_INTEGER(ParseUintHandler, "4294967295", 4294967295u);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment