summaryrefslogtreecommitdiff
path: root/test/baseline/feat-check.test
blob: a9db1ec49998a825b391ca56651a1d7b4cf08487 (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: "$sourcepath/test/baseline/feat-check.test", line 6: Transaction check failed: (account =~ /Foo/)
Warning: "$sourcepath/test/baseline/feat-check.test", line 8: Check failed: account("Assets:Checking").all(account =~ /Expense/)
end test