diff options
Diffstat (limited to 'tests/numerics/t_commodity.cc')
-rw-r--r-- | tests/numerics/t_commodity.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/numerics/t_commodity.cc b/tests/numerics/t_commodity.cc index 8b4d4fe8..f9892287 100644 --- a/tests/numerics/t_commodity.cc +++ b/tests/numerics/t_commodity.cc @@ -19,8 +19,12 @@ void CommodityTestCase::testPriceHistory() ptime apr15_07 = parse_datetime("2007/04/15 13:00:00"); // jww (2007-04-17): tbd + amount_t x0; amount_t x1("100.10 AAPL"); + assertThrow(x0.value(), amount_error); + assertFalse(x1.value()); + // Commodities cannot be constructed by themselves, since a great // deal of their state depends on how they were seen to be used. commodity_t& aapl(x1.commodity()); |