diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-23 02:28:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-23 02:28:26 -0400 |
commit | a61901a0923a1b4413fcc44a8ff259d309c064b0 (patch) | |
tree | 1b43d8324db9374ec37258d945356e7f7371c966 /test/baseline/opt-revalued-only.test | |
parent | 9f53efbf5f8e49b9c4dbe8c3ff595e99903b3aab (diff) | |
download | fork-ledger-a61901a0923a1b4413fcc44a8ff259d309c064b0.tar.gz fork-ledger-a61901a0923a1b4413fcc44a8ff259d309c064b0.tar.bz2 fork-ledger-a61901a0923a1b4413fcc44a8ff259d309c064b0.zip |
Added baseline test for --revalued-only
Diffstat (limited to 'test/baseline/opt-revalued-only.test')
-rw-r--r-- | test/baseline/opt-revalued-only.test | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/test/baseline/opt-revalued-only.test b/test/baseline/opt-revalued-only.test new file mode 100644 index 00000000..5135b80d --- /dev/null +++ b/test/baseline/opt-revalued-only.test @@ -0,0 +1,59 @@ +reg --market --revalued-only stocks +<<< +2009/01/01 Sample 1a + Assets:Brokerage:Stocks 100 S + Assets:Brokerage:Cash -100 P + +P 2009/01/01 00:00:00 S 2 P + +2009/02/01 Sample 2a + Assets:Brokerage:Stocks 100 S @ 1 P + Assets:Brokerage:Cash + +P 2009/02/01 00:00:00 S 4 P + +2009/03/01 Sample 3a + Assets:Brokerage:Stocks 100 S @@ 100 P + Assets:Brokerage:Cash + +P 2009/03/01 00:00:00 S 8 P + +2009/04/01 Sample 4a + Assets:Brokerage:Cash 100 P + Assets:Brokerage:Stocks -100 S {1 P} + +P 2009/04/01 00:00:00 S 16 P + +; In this usage case, the top amount is always secondary +; 2010/01/01 Sample 1b +; Assets:Brokerage:Cash -100 P +; Assets:Brokerage:Stocks 100 S +; +; P 2010/01/01 00:00:00 S 2 P + +2010/02/01 Sample 2b + Assets:Brokerage:Cash + Assets:Brokerage:Stocks 100 S @ 1 P + +P 2010/02/01 00:00:00 S 4 P + +2010/03/01 Sample 3b + Assets:Brokerage:Cash + Assets:Brokerage:Stocks 100 S @@ 100 P + +P 2010/03/01 00:00:00 S 8 P + +2010/04/01 Sample 4b + Assets:Brokerage:Stocks -100 S {1 P} + Assets:Brokerage:Cash 100 P + +P 2010/04/01 00:00:00 S 16 P +>>>1 +09-Feb-01 Commodities revalued <Revalued> 200 P 400 P +09-Mar-01 Commodities revalued <Revalued> 800 P 1600 P +09-Apr-01 Commodities revalued <Revalued> 2400 P 4800 P +10-Feb-01 Commodities revalued <Revalued> -2400 P 800 P +10-Mar-01 Commodities revalued <Revalued> 1200 P 2400 P +10-Apr-01 Commodities revalued <Revalued> 3200 P 6400 P +>>>2 +=== 0 |