summaryrefslogtreecommitdiff
path: root/test/baseline/feat-convert-with-directives.test
blob: 53adb7a6832efa6dbb741d26e98bea26020ea55f (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-directives.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-directives.dat
2012/01/01 * KFC
    Expenses:Food                                $10
    Assets:Cash

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