all repos

clerk @ a1448b5

missing tooling for ledger/hledger

clerk/journal/parser/testdata/transaction_with_strange_commodity_symbols.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
tests: switch to txtar, 3 days ago
1
-- input --
2
2024-01-01 groceries
3
2026-05-20
4
  asdf  123 $€£
5
  asdf2
6
7
2026-05-20
8
  asdf  123 bytes
9
  asdf2
10
-- expect --
11
Journal
12
  Transaction j:1:1-2:1
13
    Date: 2024-01-01
14
    Payee: "groceries" j:1:12-2:0
15
  Transaction j:2:1-6:0
16
    Date: 2026-05-20
17
    Posting j:3:1-4:1
18
      Account j:3:3-3:7
19
        SubAccount: "asdf" j:3:3-3:7
20
      Amount j:3:9-3:9
21
        Quantity: 123
22
        Commodity: "$€£"
23
        CommodityPos: After
24
        HasSpace: true
25
        Precision: 0
26
        Decimal: "."
27
    Posting j:4:1-6:0
28
      Account j:4:3-5:0
29
        SubAccount: "asdf2" j:4:3-5:0
30
      Amount: <elided>
31
  BlankLine j:6:0-6:1
32
  Transaction j:6:1-9:1
33
    Date: 2026-05-20
34
    Posting j:7:1-8:1
35
      Account j:7:3-7:7
36
        SubAccount: "asdf" j:7:3-7:7
37
      Amount j:7:9-7:9
38
        Quantity: 123
39
        Commodity: "bytes"
40
        CommodityPos: After
41
        HasSpace: true
42
        Precision: 0
43
        Decimal: "."
44
    Posting j:8:1-9:1
45
      Account j:8:3-9:0
46
        SubAccount: "asdf2" j:8:3-9:0
47
      Amount: <elided>