Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiloyip <miloyip@gmail.com>2014-09-05 16:06:03 +0400
committermiloyip <miloyip@gmail.com>2014-09-05 16:06:03 +0400
commitc4a657d430ced3baef6913e576e50501e9ad5f48 (patch)
tree692a94f5f9885c15489bff83f0fdc3aff96f877e
parenta71f2e60ff8507b08ebd180dfe8484cc47b4ecd4 (diff)
Fix ParseNumber_Integer test
-rw-r--r--test/unittest/readertest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp
index bbd33d97..7d45755c 100644
--- a/test/unittest/readertest.cpp
+++ b/test/unittest/readertest.cpp
@@ -111,11 +111,11 @@ TEST(Reader, ParseNumber_Integer) {
Reader reader; \
reader.Parse(s, h); \
EXPECT_EQ(1u, h.step_); \
- EXPECT_EQ(double(x), h.actual_); \
+ EXPECT_EQ(x, h.actual_); \
}
- TEST_INTEGER(ParseUintHandler, "0", 0);
- TEST_INTEGER(ParseUintHandler, "123", 123);
+ TEST_INTEGER(ParseUintHandler, "0", 0u);
+ TEST_INTEGER(ParseUintHandler, "123", 123u);
TEST_INTEGER(ParseUintHandler, "2147483648", 2147483648u); // 2^31 - 1 (cannot be stored in int)
TEST_INTEGER(ParseUintHandler, "4294967295", 4294967295u);