dev: commodity-styles tests: cleanup

This commit is contained in:
Simon Michael 2023-08-24 23:57:36 +01:00
parent 1ebd244abb
commit 00a8abd46d

View File

@ -1,4 +1,4 @@
# Test whether only the style without a symbol is changed
# 1. Test whether only the style without a symbol is changed
<
2021-07-09 no symbol
(a) 1234
@ -10,7 +10,6 @@
(a) $ 1,234.56
$ hledger -f- print -c '10 00'
>
2021-07-09 no symbol
(a) 12 34
@ -20,40 +19,43 @@ $ hledger -f- print -c '10 00'
2021-07-09 Dollar
(a) $ 1,234.56
>= 0
# Test whether setting the style of multiple symbols work
>=
# 2. 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
>=
# 3. 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
# Commodity styles are applied to quantity and price of a commodity (except for precision)
>=
# 4. Commodity styles are applied to quantity and price of a commodity (except for precision)
<
2021-09-12 buy A
(a) 1,234 A @ $ 1234,56
$ hledger -f- print -c '1,000.0 $' -c 'A 1000.0'
>
2021-09-12 buy A
(a) A 1.234 @ 1,234.56 $
>= 0
>=