all repos

clerk @ d12c079

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
add support of subdirectives and it's highlights, 1 month ago
1
-- input --
2
2024-01-15 t
3
    a  1E-6 BTC
4
    b  EUR 1E3
5
    c  -2.5e-2 $
6
7
-- expect --
8
Journal
9
  Transaction j:1:1-6:0
10
    Date: 2024-01-15
11
    Payee: "t" j:1:12-2:0
12
    Posting j:2:1-3:1
13
      Account j:2:5-2:6
14
        SubAccount: "a" j:2:5-2:6
15
      Amount j:2:8-3:0
16
        Quantity: 0.000001
17
        Commodity: "BTC" j:2:13-3:0
18
        CommodityPos: After
19
        HasSpace: true
20
        Precision: 0
21
    Posting j:3:1-4:1
22
      Account j:3:5-3:6
23
        SubAccount: "b" j:3:5-3:6
24
      Amount j:3:8-4:0
25
        Quantity: 1000
26
        Commodity: "EUR" j:3:8-3:11
27
        CommodityPos: Before
28
        HasSpace: true
29
        Precision: 0
30
    Posting j:4:1-6:0
31
      Account j:4:5-4:6
32
        SubAccount: "c" j:4:5-4:6
33
      Amount j:4:8-5:0
34
        Quantity: -0.025
35
        Commodity: "$" j:4:16-5:0
36
        CommodityPos: After
37
        HasSpace: true
38
        Precision: 4
39
        Decimal: "."
40
  BlankLine j:6:0-6:1