summaryrefslogtreecommitdiff
path: root/test/baseline
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 17:40:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 17:40:40 -0400
commit310e339464d972bba9a66caa55f6409248a0f419 (patch)
treef22da6829d5f5cbaa452af6b2add3c1d4c359d6a /test/baseline
parenta0a014b334301323f92397b18221950ae479d1c1 (diff)
downloadfork-ledger-310e339464d972bba9a66caa55f6409248a0f419.tar.gz
fork-ledger-310e339464d972bba9a66caa55f6409248a0f419.tar.bz2
fork-ledger-310e339464d972bba9a66caa55f6409248a0f419.zip
Added several more option baseline tests
Diffstat (limited to 'test/baseline')
-rw-r--r--test/baseline/opt-output.test11
-rw-r--r--test/baseline/opt-pager.test9
-rw-r--r--test/baseline/opt-set-account.test11
-rw-r--r--test/baseline/opt-set-payee.test11
-rw-r--r--test/baseline/opt-strict.test23
5 files changed, 65 insertions, 0 deletions
diff --git a/test/baseline/opt-output.test b/test/baseline/opt-output.test
new file mode 100644
index 00000000..49881fb3
--- /dev/null
+++ b/test/baseline/opt-output.test
@@ -0,0 +1,11 @@
+reg --output=/dev/stderr
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>1
+>>>2
+07-Feb-02 RD VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX
+ In:Di:Vanguard:VMMXX $-0.35 $-0.35
+ 0.350 VMMXX
+=== 0
diff --git a/test/baseline/opt-pager.test b/test/baseline/opt-pager.test
new file mode 100644
index 00000000..7edca3ab
--- /dev/null
+++ b/test/baseline/opt-pager.test
@@ -0,0 +1,9 @@
+reg --pager=wc
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>1
+ 3 13 243
+>>>2
+=== 0
diff --git a/test/baseline/opt-set-account.test b/test/baseline/opt-set-account.test
new file mode 100644
index 00000000..4da48f08
--- /dev/null
+++ b/test/baseline/opt-set-account.test
@@ -0,0 +1,11 @@
+reg --set-account='payee + ":" + commodity'
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>1
+07-Feb-02 RD VMMXX RD VMMXX:VMMXX 0.350 VMMXX 0.350 VMMXX
+07-Feb-02 RD VMMXX RD VMMXX:$ $-0.35 $-0.35
+ 0.350 VMMXX
+>>>2
+=== 0
diff --git a/test/baseline/opt-set-payee.test b/test/baseline/opt-set-payee.test
new file mode 100644
index 00000000..7f05da53
--- /dev/null
+++ b/test/baseline/opt-set-payee.test
@@ -0,0 +1,11 @@
+reg --set-payee='account_base + ":" + commodity'
+<<<
+2007/02/02 RD VMMXX
+ Assets:Investments:Vanguard:VMMXX 0.350 VMMXX @ $1.00
+ Income:Dividends:Vanguard:VMMXX $-0.35
+>>>1
+07-Feb-02 VMMXX:VMMXX As:In:Vanguard:VMMXX 0.350 VMMXX 0.350 VMMXX
+07-Feb-02 VMMXX:$ In:Di:Vanguard:VMMXX $-0.35 $-0.35
+ 0.350 VMMXX
+>>>2
+=== 0
diff --git a/test/baseline/opt-strict.test b/test/baseline/opt-strict.test
new file mode 100644
index 00000000..a0e593b2
--- /dev/null
+++ b/test/baseline/opt-strict.test
@@ -0,0 +1,23 @@
+reg --strict
+<<<
+2007/02/02 * Foo
+ Expenses:Food $10.00
+ Assets:Cash
+
+2007/02/03 Bar
+ * Expenses:Food $20.00
+ Assets:Cash
+
+2007/02/02 Baz
+ Expenses:Foodx $30.00
+ Assets:Cash
+>>>1
+07-Feb-02 Foo Expenses:Food $10.00 $10.00
+ Assets:Cash $-10.00 0
+07-Feb-03 Bar Expenses:Food $20.00 $20.00
+ Assets:Cash $-20.00 0
+07-Feb-02 Baz Expenses:Foodx $30.00 $30.00
+ Assets:Cash $-30.00 0
+>>>2
+Warning: "$FILE", line 10: Unknown account 'Expenses:Foodx'
+=== 0