summaryrefslogtreecommitdiff
path: root/test/unit/t_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 23:08:42 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 23:12:23 -0400
commitfc349389e3f074ae2ce22b93f3833f063f548a8f (patch)
treeb235bf0a9b6ca21aac1bcd56c8462f5570202723 /test/unit/t_amount.cc
parent96ff798736cd06812fb7e463c14d6c356c8228e3 (diff)
downloadfork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.gz
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.tar.bz2
fork-ledger-fc349389e3f074ae2ce22b93f3833f063f548a8f.zip
Restored the --budget option
Diffstat (limited to 'test/unit/t_amount.cc')
-rw-r--r--test/unit/t_amount.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/unit/t_amount.cc b/test/unit/t_amount.cc
index 94553912..7e0f53b0 100644
--- a/test/unit/t_amount.cc
+++ b/test/unit/t_amount.cc
@@ -993,15 +993,15 @@ void AmountTestCase::testNegation()
amount_t x8(string("-123.456"));
amount_t x9(- x3);
- assertThrow(x0.negate(), amount_error);
+ assertThrow(x0.negated(), amount_error);
assertEqual(x5, x1);
assertEqual(x7, x1);
assertEqual(x6, x3);
assertEqual(x8, x3);
assertEqual(- x6, x9);
- assertEqual(x3.negate(), x9);
+ assertEqual(x3.negated(), x9);
- amount_t x10(x9.negate());
+ amount_t x10(x9.negated());
assertEqual(x3, x10);
@@ -1039,9 +1039,9 @@ void AmountTestCase::testCommodityNegation()
assertEqual(amount_t("-123.45€"), - x9);
assertEqual(amount_t("123.45€"), - x10);
- assertEqual(amount_t("$-123.45"), x1.negate());
- assertEqual(amount_t("$123.45"), x2.negate());
- assertEqual(amount_t("$123.45"), x3.negate());
+ assertEqual(amount_t("$-123.45"), x1.negated());
+ assertEqual(amount_t("$123.45"), x2.negated());
+ assertEqual(amount_t("$123.45"), x3.negated());
assertEqual(string("$-123.45"), (- x1).to_string());
assertEqual(string("$123.45"), (- x2).to_string());
@@ -1054,9 +1054,9 @@ void AmountTestCase::testCommodityNegation()
assertEqual(string("-123.45€"), (- x9).to_string());
assertEqual(string("123.45€"), (- x10).to_string());
- assertEqual(amount_t("$-123.45"), x1.negate());
- assertEqual(amount_t("$123.45"), x2.negate());
- assertEqual(amount_t("$123.45"), x3.negate());
+ assertEqual(amount_t("$-123.45"), x1.negated());
+ assertEqual(amount_t("$123.45"), x2.negated());
+ assertEqual(amount_t("$123.45"), x3.negated());
assertValid(x1);
assertValid(x2);