summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-02 01:21:45 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-02 01:21:45 -0500
commit4db60bb46429ced93770afe69b42477c03c47e72 (patch)
treea2d644fdf94b43f340a6b07117d6dcd14bb325b9
parentaef7510f199932d4c11cbabd2467de53a32f275e (diff)
downloadfork-ledger-4db60bb46429ced93770afe69b42477c03c47e72.tar.gz
fork-ledger-4db60bb46429ced93770afe69b42477c03c47e72.tar.bz2
fork-ledger-4db60bb46429ced93770afe69b42477c03c47e72.zip
Added several new regression tests
-rw-r--r--test/regress/25A099C9.test19
-rw-r--r--test/regress/373540CC.test9
-rw-r--r--test/regress/5F1BAF17.test130
-rw-r--r--test/regress/8254755E.test20
4 files changed, 178 insertions, 0 deletions
diff --git a/test/regress/25A099C9.test b/test/regress/25A099C9.test
new file mode 100644
index 00000000..fb5613e2
--- /dev/null
+++ b/test/regress/25A099C9.test
@@ -0,0 +1,19 @@
+-f $sourcepath/src/amount.h reg
+<<<
+>>>1
+>>>2
+While parsing file "$sourcepath/src/amount.h", line 67:
+Error: No quantity specified for amount
+While parsing file "$sourcepath/src/amount.h", line 707:
+Error: Invalid date/time: line amount_t amoun
+While parsing file "$sourcepath/src/amount.h", line 713:
+Error: Invalid date/time: line string amount_
+While parsing file "$sourcepath/src/amount.h", line 719:
+Error: Invalid date/time: line string amount_
+While parsing file "$sourcepath/src/amount.h", line 725:
+Error: Invalid date/time: line string amount_
+While parsing file "$sourcepath/src/amount.h", line 731:
+Error: Invalid date/time: line std::ostream&
+While parsing file "$sourcepath/src/amount.h", line 738:
+Error: Invalid date/time: line std::istream&
+=== 7
diff --git a/test/regress/373540CC.test b/test/regress/373540CC.test
new file mode 100644
index 00000000..5c589ec9
--- /dev/null
+++ b/test/regress/373540CC.test
@@ -0,0 +1,9 @@
+bal --sort total --flat -X '$' not '(Income|Liabilities)'
+<<<
+2004/05/27 Book Store
+ Expenses:Books 20 BOOK @ $10
+ Liabilities:MasterCard $-200.00
+>>>1
+ $200.00 Expenses:Books
+>>>2
+=== 0
diff --git a/test/regress/5F1BAF17.test b/test/regress/5F1BAF17.test
new file mode 100644
index 00000000..f52ffb86
--- /dev/null
+++ b/test/regress/5F1BAF17.test
@@ -0,0 +1,130 @@
+bal da39 --flat --sort amount --display-total amount
+<<<
+2006/02/16 b5f40e96
+ da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $713.35
+ Assets
+
+2006/03/27 c7ab1f2d
+ da39a3ee:8d437dbf:ee2bf9bd:9b69a35a $139.62
+ Assets
+
+2006/03/30 f32ea1dc
+ da39a3ee:8d437dbf:ee2bf9bd:d219c681 $1,600.00
+ Assets
+
+2006/04/21 d449d51e
+ da39a3ee:8d437dbf:ee2bf9bd:75b04b88 $698.10
+ Assets
+
+2006/05/02 b02f8323
+ da39a3ee:8d437dbf:ee2bf9bd $42.22
+ Assets
+
+2006/05/05 2a6f6850
+ da39a3ee:8d437dbf:ee2bf9bd:75b04b88:b3850e04 $2,468.00
+ Assets
+
+2006/05/09 59f92263
+ da39a3ee:8d437dbf:ee2bf9bd:071c929a $132.82
+ Assets
+
+2006/05/18 f78a7a51
+ da39a3ee:8d437dbf:ee2bf9bd:e97de844 $368.05
+ Assets
+
+2006/05/19 f35c594c
+ da39a3ee:8d437dbf:ee2bf9bd:d4e7d7d3 $386.62
+ Assets
+
+2006/05/22 0233a991
+ da39a3ee:8d437dbf:ee2bf9bd:9c6e5a3f $141.98
+ Assets
+
+2006/05/23 56ccae7f
+ da39a3ee:8d437dbf:ee2bf9bd:d31d367b $81.78
+ Assets
+
+2006/05/24 d449d51e
+ da39a3ee:8d437dbf:ee2bf9bd:75b04b88 $65.00
+ Assets
+
+2006/05/25 dc833c91
+ da39a3ee:8d437dbf:ee2bf9bd:d31d367b $34.37
+ Assets
+
+2006/05/31 6822b496
+ da39a3ee:8d437dbf:ee2bf9bd:e97de844 $41.78
+ Assets
+
+2006/06/02 dff8ccb2
+ da39a3ee:8d437dbf:ee2bf9bd:14e351e1 $67.36
+ Assets
+
+2006/06/02 e1eb3f4b
+ da39a3ee:8d437dbf:ee2bf9bd:2c7a078f $14.00
+ Assets
+
+2006/06/04 feec73ea
+ da39a3ee:8d437dbf:ee2bf9bd:131260cb $144.99
+ Assets
+
+2006/06/04 e8f65e0a
+ da39a3ee:8d437dbf:ee2bf9bd:d219c681 $75.00
+ Assets
+
+2006/06/04 3fd43f7b
+ da39a3ee:8d437dbf:ee2bf9bd:9c4ba7d0 $239.59
+ Assets
+
+2006/06/06 754be754
+ da39a3ee:8d437dbf:ee2bf9bd:35b25929 $1,160.14
+ Assets
+
+2006/06/06 00c16d44
+ da39a3ee:8d437dbf:ee2bf9bd:e97de844 $78.45
+ Assets
+
+2006/06/08 e7b0b317
+ da39a3ee:8d437dbf:ee2bf9bd $443.00
+ Assets
+
+2006/07/17 a30c4c31
+ da39a3ee:8d437dbf:ee2bf9bd $880.80
+ Assets
+
+2006/08/08 e31a0cf9
+ da39a3ee:8d437dbf:ee2bf9bd $104.53
+ Assets
+
+2006/08/10 f0c0c688
+ da39a3ee:8d437dbf:ee2bf9bd $196.70
+ Assets
+
+2006/09/12 1bc59c63
+ da39a3ee:8d437dbf:ee2bf9bd $217.79
+ Assets
+
+2007/07/16 557e3a00
+ da39a3ee:8d437dbf:ee2bf9bd:f61e33bf $117.80
+ Assets
+>>>1
+ $14.00 da39a3ee:8d437dbf:ee2bf9bd:2c7a078f
+ $67.36 da39a3ee:8d437dbf:ee2bf9bd:14e351e1
+ $116.15 da39a3ee:8d437dbf:ee2bf9bd:d31d367b
+ $132.82 da39a3ee:8d437dbf:ee2bf9bd:071c929a
+ $139.62 da39a3ee:8d437dbf:ee2bf9bd:9b69a35a
+ $141.98 da39a3ee:8d437dbf:ee2bf9bd:9c6e5a3f
+ $144.99 da39a3ee:8d437dbf:ee2bf9bd:131260cb
+ $239.59 da39a3ee:8d437dbf:ee2bf9bd:9c4ba7d0
+ $386.62 da39a3ee:8d437dbf:ee2bf9bd:d4e7d7d3
+ $488.28 da39a3ee:8d437dbf:ee2bf9bd:e97de844
+ $763.10 da39a3ee:8d437dbf:ee2bf9bd:75b04b88
+ $831.15 da39a3ee:8d437dbf:ee2bf9bd:f61e33bf
+ $1,160.14 da39a3ee:8d437dbf:ee2bf9bd:35b25929
+ $1,675.00 da39a3ee:8d437dbf:ee2bf9bd:d219c681
+ $1,885.04 da39a3ee:8d437dbf:ee2bf9bd
+ $2,468.00 da39a3ee:8d437dbf:ee2bf9bd:75b04b88:b3850e04
+--------------------
+ 0
+>>>2
+=== 0
diff --git a/test/regress/8254755E.test b/test/regress/8254755E.test
new file mode 100644
index 00000000..26baf52d
--- /dev/null
+++ b/test/regress/8254755E.test
@@ -0,0 +1,20 @@
+bal --flat food:out
+<<<
+~ Monthly
+ Expenses:Auto:Fuel $120.00
+ Expenses:Food:Out $100.00
+ Expenses:Food:Groceries $350.00
+ Assets
+
+2009/11/01
+ Expenses:Food:Out $50.00
+ Assets
+>>>1
+ $50.00 Expenses:Food:Out
+>>>2
+=== 0
+bal --flat --budget food:out
+>>>1
+ $-50.00 Expenses:Food:Out
+>>>2
+=== 0