diff options
author | tripun <tripun@gmail.com> | 2014-08-11 20:54:59 +0530 |
---|---|---|
committer | tripun <tripun@gmail.com> | 2014-08-11 21:01:26 +0530 |
commit | 0e1ced72bd7839162a33eb34f717a94eae777fc4 (patch) | |
tree | 1ff240bf03c692d6a06ad1c58a25e5352532800f /test/unit/t_balance.cc | |
parent | 84b9ca73aac73b6c7938abea91f8f550a0fad101 (diff) | |
download | fork-ledger-0e1ced72bd7839162a33eb34f717a94eae777fc4.tar.gz fork-ledger-0e1ced72bd7839162a33eb34f717a94eae777fc4.tar.bz2 fork-ledger-0e1ced72bd7839162a33eb34f717a94eae777fc4.zip |
Revert "add unit test printing for balance_t" until issue is fixed.
Getting different output on system than travis-ci.
This reverts commit 272e3cb3799937dcd3c379de56b299a3cbde52ca.
Diffstat (limited to 'test/unit/t_balance.cc')
-rw-r--r-- | test/unit/t_balance.cc | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/unit/t_balance.cc b/test/unit/t_balance.cc index eac230be..c4ec2f31 100644 --- a/test/unit/t_balance.cc +++ b/test/unit/t_balance.cc @@ -522,35 +522,4 @@ BOOST_AUTO_TEST_CASE(testForZero) BOOST_CHECK(b1.valid()); } -BOOST_AUTO_TEST_CASE(testPrinting) -{ - amount_t a1("0.00"); - amount_t a2("$ 123"); - amount_t a3("EUR 456"); - - balance_t b0; - balance_t b1; - - b1 += a1; - b1 += a2; - b1 += a3; - - { - std::ostringstream bufstr; - b0.dump(bufstr); - BOOST_CHECK_EQUAL(std::string("BALANCE()"), bufstr.str()); - } - - { - std::ostringstream bufstr; - b1.dump(bufstr); - - BOOST_CHECK_EQUAL(std::string("BALANCE(EUR 456, $ 123.00)"), - bufstr.str()); - } - - BOOST_CHECK(b0.valid()); - BOOST_CHECK(b1.valid()); -} - BOOST_AUTO_TEST_SUITE_END() |