aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorErik Åldstedt Sund <erik.sund@conoptica.com>2017-10-23 22:59:08 +0200
committerErik Åldstedt Sund <erik.sund@conoptica.com>2017-10-30 20:47:48 +0100
commitecbbd0ebf2204bae8ca968007c7408b6e2ae2a75 (patch)
tree014c6262dbed0b5f8794497c89617c9a850ada44 /tests
parent4fe7dd171a77747f1b14654acd369381d6eb3f17 (diff)
downloadcrow-ecbbd0ebf2204bae8ca968007c7408b6e2ae2a75.tar.gz
crow-ecbbd0ebf2204bae8ca968007c7408b6e2ae2a75.zip
Fixed ostream operator for big integers
Diffstat (limited to 'tests')
-rw-r--r--tests/unittest.cpp4
1 files changed, 4 insertions, 0 deletions
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)