all repos

clerk @ 1f3a17349e37c8189adb11b8d956acbf3b2080d1

missing tooling for ledger/hledger

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

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
tests: switch to txtar, 2 days ago
1
-- input --
2
2024/01/01 groceries
3
    expenses:food  $10
4
    @@@bad
5
    assets:cash  $5
6
-- expect --
7
Journal
8
  Transaction j:1:1-5:1
9
    Date: 2024/01/01
10
    Payee: "groceries" j:1:12-2:0
11
    Posting j:2:1-3:1
12
      Account j:2:5-2:18
13
        SubAccount: "expenses" j:2:5-2:13
14
        SubAccount: "food" j:2:14-2:18
15
      Amount j:2:20-2:20
16
        Quantity: 10
17
        Commodity: "$"
18
        CommodityPos: Before
19
        HasSpace: false
20
        Precision: 0
21
        Decimal: "."
22
    Posting j:4:1-5:1
23
      Account j:4:5-4:16
24
        SubAccount: "assets" j:4:5-4:11
25
        SubAccount: "cash" j:4:12-4:16
26
      Amount j:4:18-4:18
27
        Quantity: 5
28
        Commodity: "$"
29
        CommodityPos: Before
30
        HasSpace: false
31
        Precision: 0
32
        Decimal: "."
33
  Errors
34
    j:3:5-3:7: expected account name, got ATAT