Skip to content
Permalink
Browse files

tests: update i18n test journals, i18n tests

  • Loading branch information...
simonmichael committed Apr 20, 2019
1 parent 2ca2466 commit d7161466d3cfd7a9c37bd4ccf91aac7c63775af2
Showing with 32 additions and 32 deletions.
  1. +6 −6 examples/ascii.journal
  2. +6 −6 examples/chinese.journal
  3. +20 −20 tests/i18n/wide-char-layout.test
@@ -1,15 +1,15 @@
2018-01-01 transaction 1
2000-01-01 transaction 1
1 1 A
1:2 -1 A

2018-01-02 transaction 2
2000-01-02 transaction 2
1:2:3 1 A
1:2:3:4 -1 A

2018-01-03 transaction 3
2000-01-03 transaction 3
1:2:3:4:5 1 A
1 -1 A

P 2018-01-01 A 0.70 B
P 2018-01-02 A 0.71 B
P 2018-01-03 A 0.72 B
P 2000-01-01 A 0.70 B
P 2000-01-02 A 0.71 B
P 2000-01-03 A 0.72 B
@@ -1,15 +1,15 @@
2018-01-01 transaction 1
2000-01-01 transaction 1
㐀 1 A
㐀:㐁 -1 A

2018-01-02 transaction 2
2000-01-02 transaction 2
㐀:㐁:㐂 1 A
㐀:㐁:㐂:㐃 -1 A

2018-01-03 transaction 3
2000-01-03 transaction 3
㐀:㐁:㐂:㐃:㐄 1 A
㐀 -1 A

P 2018-01-01 A 0.70 B
P 2018-01-02 A 0.71 B
P 2018-01-03 A 0.72 B
P 2000-01-01 A 0.70 B
P 2000-01-02 A 0.71 B
P 2000-01-03 A 0.72 B
@@ -7,27 +7,27 @@
# 1.
hledger -f - print
<<<
2014-01-01 transaction 1
2000-01-01 transaction 1
㐀 㐃㐃1 @ 2 㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂
㐀:㐁 ;㐃㐃-1

2014-01-02 transaction 2
2000-01-02 transaction 2
㐀:㐁:㐂 USD 1
㐀:㐁:㐂:㐃 EUR -1

2014-01-03 transaction 3
2000-01-03 transaction 3
㐀:㐁:㐂:㐃:㐄 1
㐀 -1
>>>
2014/01/01 transaction 1
2000/01/01 transaction 1
㐀 㐃㐃1 @ 2 㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂
㐀:㐁 ; 㐃㐃-1

2014/01/02 transaction 2
2000/01/02 transaction 2
㐀:㐁:㐂 USD 1
㐀:㐁:㐂:㐃 EUR -1

2014/01/03 transaction 3
2000/01/03 transaction 3
㐀:㐁:㐂:㐃:㐄 1
㐀 -1

@@ -37,22 +37,22 @@ hledger -f - print
# 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
2000/01/01 transaction 1 㐀 1 A 1 A
㐀:㐁 -1 A 0
2000/01/02 transaction 2 㐀:㐁:㐂 1 A 1 A
㐀:㐁:㐂:㐃 -1 A 0
2000/01/03 transaction 3 㐀:㐁:㐂:㐃:㐄 1 A 1 A
-1 A 0
>>>2
>>>=0

# 3.
hledger -f chinese.journal balance
>>>
0 㐀:㐁
1
1 A
0 㐃
1
1 A
--------------------
0
>>>2
@@ -61,14 +61,14 @@ hledger -f chinese.journal balance
# 4.
hledger -f chinese.journal balance -Y
>>>
Balance changes in 2014:
Balance changes in 2000:

|| 2014
|| 2000
================++======
㐀:㐁 || -1
㐀:㐁:㐂 || 1
㐀:㐁:㐂:㐃 || -1
㐀:㐁:㐂:㐃:㐄 || 1
㐀:㐁 || -1 A
㐀:㐁:㐂 || 1 A
㐀:㐁:㐂:㐃 || -1 A
㐀:㐁:㐂:㐃:㐄 || 1 A
----------------++------
|| 0
>>>2

0 comments on commit d716146

Please sign in to comment.
You can’t perform that action at this time.