summaryrefslogtreecommitdiff
path: root/tests/numerics/BasicAmount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-05-03 06:10:32 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:36 -0400
commitf9f24fab933266ab8e12da7eef4cc2a906f77350 (patch)
tree4d4ef97c450a2679bc70726b3758b3c0c234def9 /tests/numerics/BasicAmount.cc
parentf0508a9f86be63fc4f98e9943ce2f226339e6309 (diff)
downloadfork-ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.tar.gz
fork-ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.tar.bz2
fork-ledger-f9f24fab933266ab8e12da7eef4cc2a906f77350.zip
Added code to use boost::lexical_cast<>.
Diffstat (limited to 'tests/numerics/BasicAmount.cc')
-rw-r--r--tests/numerics/BasicAmount.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/numerics/BasicAmount.cc b/tests/numerics/BasicAmount.cc
index c1a1f0fa..de249ae5 100644
--- a/tests/numerics/BasicAmount.cc
+++ b/tests/numerics/BasicAmount.cc
@@ -17,8 +17,8 @@ void BasicAmountTestCase::testConstructors()
amount_t x3(123.456);
amount_t x5("123456");
amount_t x6("123.456");
- amount_t x7(std::string("123456"));
- amount_t x8(std::string("123.456"));
+ amount_t x7(string("123456"));
+ amount_t x8(string("123.456"));
amount_t x9(x3);
amount_t x10(x6);
amount_t x11(x8);
@@ -76,8 +76,8 @@ void BasicAmountTestCase::testAssignment()
x3 = 123.456;
x5 = "123456";
x6 = "123.456";
- x7 = std::string("123456");
- x8 = std::string("123.456");
+ x7 = string("123456");
+ x8 = string("123.456");
x9 = x3;
x10 = amount_t(x6);
@@ -415,8 +415,8 @@ void BasicAmountTestCase::testNegation()
amount_t x3(-123.456);
amount_t x5("-123456");
amount_t x6("-123.456");
- amount_t x7(std::string("-123456"));
- amount_t x8(std::string("-123.456"));
+ amount_t x7(string("-123456"));
+ amount_t x8(string("-123.456"));
amount_t x9(- x3);
assertEqual(amount_t(0L), x0);