summaryrefslogtreecommitdiff
path: root/test/doc/transaction-notes-1.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-01 21:18:09 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-01 21:18:09 -0500
commit46a419a5dabcc6b02231f12357b20f70a14cfe63 (patch)
tree1022e239f4725562f1fef97c5cb7394d53dab38b /test/doc/transaction-notes-1.test
parent6538a2d1b8630d2a8224e517bf35ce51ab561d3a (diff)
downloadfork-ledger-46a419a5dabcc6b02231f12357b20f70a14cfe63.tar.gz
fork-ledger-46a419a5dabcc6b02231f12357b20f70a14cfe63.tar.bz2
fork-ledger-46a419a5dabcc6b02231f12357b20f70a14cfe63.zip
Added DocTests to verify documentation examples
Diffstat (limited to 'test/doc/transaction-notes-1.test')
-rw-r--r--test/doc/transaction-notes-1.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/doc/transaction-notes-1.test b/test/doc/transaction-notes-1.test
new file mode 100644
index 00000000..d3fab3b6
--- /dev/null
+++ b/test/doc/transaction-notes-1.test
@@ -0,0 +1,24 @@
+reg --columns=60 food and note eat
+<<<
+2009/11/01 Panera Bread ; Got something to eat
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Coffee
+ ; Let’s see, I ate a whole bunch of stuff, drank some coffee,
+ ; pondered a bagel, then decided against the donut.
+ Expenses:Food $4.50
+ Assets:Checking
+
+2009/11/01 Panera Bread
+ ; Type: Dining
+ ; :Eating:
+ ; This is another long note, after the metadata.
+ Expenses:Food $4.50
+ Assets:Checking
+>>>1
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $9.00
+>>>2
+=== 0