summaryrefslogtreecommitdiff
path: root/test/baseline/feat-convert-with-diretives.test
blob: 2f6e0102093f1d854b1bf185f60e8cb59806028b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
account Expenses:Food
    payee KFC
    payee REWE

payee REWE
    alias REWE SAGT DANKE

# When reading csv file without directives:
test -f /dev/null convert test/baseline/feat-convert-with-diretives.dat
2012/01/01 * KFC
    Expenses:Unknown                             $10
    Equity:Unknown

2012/01/02 * REWE SAGT DANKE  123454321
    Expenses:Unknown                             10€
    Equity:Unknown
end test

# When reading csv file with directives:
test --account "Assets:Cash" convert test/baseline/feat-convert-with-diretives.dat
2012/01/01 * KFC
    Expenses:Food                                $10
    Assets:Cash

2012/01/02 * REWE
    Expenses:Food                                10€
    Assets:Cash
end test