hledger/tests/nonascii/wide-char-layout.test
Simon Michael 3b40edba9c print: fix wide char support, add tests (#242)
The print command wasn't lining up amounts with wide chars in account
names, fixed it properly this time. Transaction and Posting's Show instances
should also be wide-char-aware now.
2015-10-10 11:53:28 -07:00

68 lines
1.6 KiB
Plaintext

# ALl output should preserve alignment etc. when showing wide characters.
# XXX For a better test, the sample journals should have commodity symbols.
# XXX How to test hledger-ui ?
# 1.
hledger -f chinese.journal print
>>>
2014/01/01 transaction 1
㐀 1
㐀:㐁 -1
2014/01/02 transaction 2
㐀:㐁:㐂 1
㐀:㐁:㐂:㐃 -1
2014/01/03 transaction 3
㐀:㐁:㐂:㐃:㐄 1
㐀 -1
>>>=0
# 2.
hledger -f chinese.journal register --width 80
>>>
2014/01/01 transaction 1 㐀 1 1
㐀:㐁 -1 0
2014/01/02 transaction 2 㐀:㐁:㐂 1 1
㐀:㐁:㐂:㐃 -1 0
2014/01/03 transaction 3 㐀:㐁:㐂:㐃:㐄 1 1
㐀 -1 0
>>>=0
# 3.
hledger -f chinese.journal balance
>>>
0 㐀:㐁
1 㐂
0 㐃
1 㐄
--------------------
0
>>>=0
# 4.
hledger -f chinese.journal balance -Y
>>>
Balance changes in 2014:
|| 2014
================++=======
㐀:㐁 || -1
㐀:㐁:㐂 || 1
㐀:㐁:㐂:㐃 || -1
㐀:㐁:㐂:㐃:㐄 || 1
----------------++-------
|| 0
>>>=0
# 5.
# 6.
# 7.
# 8.