From ecbbd0ebf2204bae8ca968007c7408b6e2ae2a75 Mon Sep 17 00:00:00 2001 From: Erik Ã…ldstedt Sund Date: Mon, 23 Oct 2017 22:59:08 +0200 Subject: Fixed ostream operator for big integers --- tests/unittest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/unittest.cpp b/tests/unittest.cpp index d7f1c80..6fe1bbd 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -533,6 +533,10 @@ TEST(json_read) std::string s3 = R"({"uint64": 18446744073709551615})"; auto z1 = json::load(s3); ASSERT_EQUAL(18446744073709551615ull, z1["uint64"].u()); + + std::ostringstream os; + os << z1["uint64"]; + ASSERT_EQUAL("18446744073709551615", os.str()); } TEST(json_read_real) -- cgit v1.2.3-54-g00ecf