summaryrefslogtreecommitdiff
path: root/test/baseline/opt-pricedb-format.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-12 14:29:08 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-12 14:29:08 -0500
commitbfd9ecf2af079894f95bac365818c9548f561039 (patch)
treedce7e13ec7ad8f18bc628efe511d17e94bc3e16d /test/baseline/opt-pricedb-format.test
parenta034435c4287aba7fd32ed63a745e560350c924a (diff)
parent49a356f2d260ed0cc071ca1aa82027bd325b0b8b (diff)
downloadfork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.tar.gz
fork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.tar.bz2
fork-ledger-bfd9ecf2af079894f95bac365818c9548f561039.zip
Merge branch 'next'
Diffstat (limited to 'test/baseline/opt-pricedb-format.test')
-rw-r--r--test/baseline/opt-pricedb-format.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/baseline/opt-pricedb-format.test b/test/baseline/opt-pricedb-format.test
new file mode 100644
index 00000000..5dbff609
--- /dev/null
+++ b/test/baseline/opt-pricedb-format.test
@@ -0,0 +1,19 @@
+pricedb --pricedb-format='P %(date) %(scrub(display_amount))\n'
+<<<
+P 2009/01/01 13:30:00 AAPL $10.00
+P 2009/01/01 14:30:00 AAPL $20.00
+P 2009/01/01 15:30:00 AAPL $30.00
+P 2009/01/01 16:30:00 AAPL $40.00
+P 2009/02/01 17:30:00 AAPL $50.00
+
+2009/03/01 Purchase
+ Assets:Brokerage 100 AAPL
+ Income
+>>>1
+P 2009/01/01 $10.00
+P 2009/01/01 $20.00
+P 2009/01/01 $30.00
+P 2009/01/01 $40.00
+P 2009/02/01 $50.00
+>>>2
+=== 0