From f88b56dff0e8adfbd654d0b39791c2664c863e07 Mon Sep 17 00:00:00 2001 From: ipknHama Date: Sat, 27 Aug 2016 18:12:17 +0900 Subject: Add u() for uint64_t: manually applying #129 --- tests/unittest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/unittest.cpp b/tests/unittest.cpp index 9021af5..78732b0 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -519,6 +519,10 @@ TEST(json_read) ASSERT_EQUAL(false, z["bools"][1].b()); ASSERT_EQUAL(1.2, z["doubles"][0].d()); ASSERT_EQUAL(-3.4, z["doubles"][1].d()); + + std::string s3 = R"({"uint64": 18446744073709551615})"; + auto z1 = json::load(s3); + ASSERT_EQUAL(18446744073709551615ull, z1["uint64"].u()); } TEST(json_read_real) -- cgit v1.2.3-54-g00ecf