summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/baseline/cmd-accounts.test38
-rw-r--r--test/baseline/cmd-commodities.test30
-rw-r--r--test/baseline/cmd-payees.test42
3 files changed, 110 insertions, 0 deletions
diff --git a/test/baseline/cmd-accounts.test b/test/baseline/cmd-accounts.test
new file mode 100644
index 00000000..be6365fd
--- /dev/null
+++ b/test/baseline/cmd-accounts.test
@@ -0,0 +1,38 @@
+2011-01-01 * Opening balance
+ Assets:Bank 10.00 GBP
+ Equity:Opening balance
+
+2012-01-02 * List XXX before AAA to test sorting
+ Assets:XXX 5.00 GBP
+ Assets:Bank
+
+2012-01-03 * List AAA after XXX to test sorting
+ Assets:AAA 3.00 GBP
+ Assets:Bank
+
+2012-01-03 * Account name with UTF-8
+ Assets:♚ 3.00 GBP
+ Assets:Testing123ÕßDone
+
+test accounts
+Assets:Bank
+Equity:Opening balance
+Assets:XXX
+Assets:AAA
+Assets:♚
+Assets:Testing123ÕßDone
+end test
+
+test accounts assets:a
+Assets:AAA
+end test
+
+test accounts b
+Assets:Bank
+Equity:Opening balance
+end test
+
+test accounts ß
+Assets:Testing123ÕßDone
+end test
+
diff --git a/test/baseline/cmd-commodities.test b/test/baseline/cmd-commodities.test
new file mode 100644
index 00000000..0ce6f7a0
--- /dev/null
+++ b/test/baseline/cmd-commodities.test
@@ -0,0 +1,30 @@
+2011-01-01 * Opening balance
+ Assets:Bank 10.00 GBP
+ Equity:Opening balance
+
+2011-03-04 * Buy AAA
+ Assets:Broker 2 AAA @ 0.90 GBP
+ Assets:Bank -1.80 GBP
+
+2011-03-05 * Buy AA2
+ Assets:Broker 2 "AA2" @ 1.00 GBP
+ Assets:Bank
+
+2011-03-06 * Get Miles&More airmiles
+ Assets:Rewards 1000 "M&M"
+ Income:Rewards
+
+test commodities
+GBP
+AAA
+"AA2"
+"M&M"
+end test
+
+test commodities Assets:Rewards
+"M&M"
+end test
+
+test commodities no:such:account
+end test
+
diff --git a/test/baseline/cmd-payees.test b/test/baseline/cmd-payees.test
new file mode 100644
index 00000000..af8a44bc
--- /dev/null
+++ b/test/baseline/cmd-payees.test
@@ -0,0 +1,42 @@
+2011-03-01 * Z
+ A 10
+ B
+
+2011-03-02 * A
+ C 10
+ D
+
+2011-03-03 * 9
+ B 10
+ E
+
+2011-03-04 * B
+ B 10
+ E
+
+2011-03-05 * 1
+ B 10
+ E
+
+test payees
+1
+9
+A
+B
+Z
+end test
+
+test payees a
+Z
+end test
+
+test payees no:such:account
+end test
+
+test payees "^B$"
+1
+9
+B
+Z
+end test
+