summaryrefslogtreecommitdiff
path: root/test/baseline/feat-check.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-26 01:17:08 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-26 01:17:08 -0400
commit4d1eea90c50cff5c97ca59937428f7bec120e784 (patch)
treec73d5922b2c77ac540576f48284e5dc527981d08 /test/baseline/feat-check.test
parent03912a44ab77f473dc1fa0e51559cbe800e0dfbc (diff)
downloadfork-ledger-4d1eea90c50cff5c97ca59937428f7bec120e784.tar.gz
fork-ledger-4d1eea90c50cff5c97ca59937428f7bec120e784.tar.bz2
fork-ledger-4d1eea90c50cff5c97ca59937428f7bec120e784.zip
Added baseline test for "check" feature
Diffstat (limited to 'test/baseline/feat-check.test')
-rw-r--r--test/baseline/feat-check.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/baseline/feat-check.test b/test/baseline/feat-check.test
new file mode 100644
index 00000000..4029dfcd
--- /dev/null
+++ b/test/baseline/feat-check.test
@@ -0,0 +1,18 @@
+bal
+<<<
+= /Checking/
+ check account =~ /Foo/
+
+2010-06-24 Sample
+ Expenses:Food $100
+ Assets:Checking
+
+check account("Assets:Checking").all(account =~ /Expense/)
+>>>
+ $-100 Assets:Checking
+ $100 Expenses:Food
+--------------------
+ 0
+>>>2
+Warning: Transaction check failed: account =~ /Foo/
+Warning: Check failed: account("Assets:Checking").all(account =~ /Expense/)