summaryrefslogtreecommitdiff
path: root/test/regress/605A410D.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-16 04:09:21 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-16 04:09:21 -0500
commit7462d09b214f2497d9d41a24f4fa8a4dd1577aba (patch)
tree639ef9fe4dea88d815a35efacbc0c120cba78648 /test/regress/605A410D.test
parent20c076dff92806c6c2aae7c0c87b000ffc703382 (diff)
downloadfork-ledger-7462d09b214f2497d9d41a24f4fa8a4dd1577aba.tar.gz
fork-ledger-7462d09b214f2497d9d41a24f4fa8a4dd1577aba.tar.bz2
fork-ledger-7462d09b214f2497d9d41a24f4fa8a4dd1577aba.zip
Correct parsing of automated xact expressions
Fixes #458
Diffstat (limited to 'test/regress/605A410D.test')
-rw-r--r--test/regress/605A410D.test32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/regress/605A410D.test b/test/regress/605A410D.test
new file mode 100644
index 00000000..6943939a
--- /dev/null
+++ b/test/regress/605A410D.test
@@ -0,0 +1,32 @@
+= expr amount > 500 and account =~ /Employer:One/
+ (Virtual) 1
+
+2012-01-16 KFC
+ Employer:One $1,000.00
+ Assets:Cash
+
+= expr amount>500 and account =~ /Employer:Two/
+ (Virtual) 10
+
+2012-02-16 KFC
+ Employer:Two $1,000.00
+ Assets:Cash
+
+= Employer:Three and expr amount>500
+ (Virtual) 100
+
+2012-03-16 KFC
+ Employer:Three $1,000.00
+ Assets:Cash
+
+test reg
+12-Jan-16 KFC Employer:One $1,000.00 $1,000.00
+ Assets:Cash $-1,000.00 0
+ (Virtual) $1,000.00 $1,000.00
+12-Feb-16 KFC Employer:Two $1,000.00 $2,000.00
+ Assets:Cash $-1,000.00 $1,000.00
+ (Virtual) $10,000.00 $11,000.00
+12-Mar-16 KFC Employer:Three $1,000.00 $12,000.00
+ Assets:Cash $-1,000.00 $11,000.00
+ (Virtual) $100,000.00 $111,000.00
+end test