hledger/hledger/test/cli/commodity-style.test
2021-08-17 22:05:29 -10:00

50 lines
852 B
Plaintext

# Test whether only the style without a symbol is changed
<
2021-07-09 no symbol
(a) 1234
2021-07-09 Euro
(a) EUR 1.234,56
2021-07-09 Dollar
(a) $ 1,234.56
$ hledger -f- print -c '10 00'
>
2021-07-09 no symbol
(a) 12 34
2021-07-09 Euro
(a) EUR 1.234,56
2021-07-09 Dollar
(a) $ 1,234.56
>= 0
# Test whether setting the style of multiple symbols work
<
2021-07-09 Euro
(a) EUR 1,234.56
2021-07-09 Dollar
(a) $ 1.234,56
$ hledger -f- print -c 'EUR 1.000,00' -c '$ 1,000.00'
>
2021-07-09 Euro
(a) EUR 1.234,56
2021-07-09 Dollar
(a) $ 1,234.56
>= 0
# When setting the same symbol multiple times, the last one is in effect
<
2021-07-09 Euro
(a) EUR 1234
$ hledger -f- print -c 'EUR 1.000,00' -c 'EUR 1,000.00'
>
2021-07-09 Euro
(a) EUR 1,234.00
>= 0