From 2b76b6d5fe78ba60a3770c8ea9a7479a47329905 Mon Sep 17 00:00:00 2001 From: Nathan Hourt Date: Wed, 15 Oct 2014 18:00:31 -0400 Subject: [PATCH] Add another uint128 test --- tests/real128_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/real128_test.cpp b/tests/real128_test.cpp index dad91da..7f263b9 100644 --- a/tests/real128_test.cpp +++ b/tests/real128_test.cpp @@ -17,5 +17,6 @@ BOOST_AUTO_TEST_CASE(real128_test) BOOST_CHECK_EQUAL(string(real128(0)), string(real128("0"))); BOOST_CHECK_EQUAL(real128("12345.6789").to_uint64(), 12345); + BOOST_CHECK_EQUAL((real128("12345.6789")*10000).to_uint64(), 123456789); BOOST_CHECK_EQUAL(string(real128("12345.6789")), string("12345.6789")); }