summaryrefslogtreecommitdiff
path: root/test/baseline/feat-check.test
blob: 9a2e72dfebe3ea831d86d71646fd995f4b27692d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
= /Checking/
  check account =~ /Foo/

2010-06-24 Sample
  Expenses:Food    $100
  Assets:Checking

check account("Assets:Checking").all(account =~ /Expense/)

test bal
               $-100  Assets:Checking
                $100  Expenses:Food
--------------------
                   0
__ERROR__
Warning: Transaction check failed: (account =~ /Foo/)
Warning: "$sourcepath/test/baseline/feat-check.test", line 8: Check failed: account("Assets:Checking").all(account =~ /Expense/)
end test