summaryrefslogtreecommitdiff
path: root/tests/corelib/numerics/Commodity.cc
blob: 77cdd7b9581be8250e2e36bd31804753e0100f8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "Commodity.h"
#include "ledger.h"

using namespace ledger;

CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(CommodityTestCase, "numerics");

void CommodityTestCase::setUp() {}
void CommodityTestCase::tearDown() {}

void CommodityTestCase::testConstructors()
{

}

void CommodityTestCase::testPriceHistory()
{
  // jww (2007-04-17): tbd
  amount_t x1("100.10 AAPL");

  assertEqual(x1, x1.value(datetime_t()));

  assertValid(x1);
}

void CommodityTestCase::testLots()
{
  // jww (2007-04-17): tbd
}

void CommodityTestCase::testScalingBase()
{
  // jww (2007-04-17): tbd
}

void CommodityTestCase::testReduction()
{
  // jww (2007-04-17): tbd
}