all repos

clerk @ e2e9e2b

missing tooling for ledger/hledger

clerk/journal/parser/testdata/recovery_after_bad_posting.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
    @@@invalid
4
    assets:checking
5
6
2024/01/02 salary
7
    income:salary  $1000
8
    assets:checking
9
-- expect --
10
Journal
11
  Transaction j:1:1-5:0
12
    Date: 2024-01-01
13
    Payee: "groceries" j:1:12-2:0
14
    Posting j:3:1-5:0
15
      Account j:3:5-4:0
16
        SubAccount: "assets" j:3:5-3:11
17
        SubAccount: "checking" j:3:12-4:0
18
      Amount: <elided>
19
  BlankLine j:5:0-5:1
20
  Transaction j:5:1-8:1
21
    Date: 2024/01/02
22
    Payee: "salary" j:5:12-6:0
23
    Posting j:6:1-7:1
24
      Account j:6:5-6:18
25
        SubAccount: "income" j:6:5-6:11
26
        SubAccount: "salary" j:6:12-6:18
27
      Amount j:6:20-6:20
28
        Quantity: 1000
29
        Commodity: "$"
30
        CommodityPos: Before
31
        HasSpace: false
32
        Precision: 0
33
        Decimal: "."
34
    Posting j:7:1-8:1
35
      Account j:7:5-8:0
36
        SubAccount: "assets" j:7:5-7:11
37
        SubAccount: "checking" j:7:12-8:0
38
      Amount: <elided>
39
  Errors
40
    j:2:5-2:7: expected account name, got ATAT