all repos

clerk @ 1f3a17349e37c8189adb11b8d956acbf3b2080d1

missing tooling for ledger/hledger

clerk/journal/parser/testdata/multiple_bad_postings.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
    @@@bad1
5
    @bad2
6
    assets:checking
7
-- expect --
8
Journal
9
  Transaction j:1:1-6:1
10
    Date: 2024/01/01
11
    Payee: "groceries" j:1:12-2:0
12
    Posting j:2:1-3:1
13
      Account j:2:5-2:18
14
        SubAccount: "expenses" j:2:5-2:13
15
        SubAccount: "food" j:2:14-2:18
16
      Amount j:2:20-2:20
17
        Quantity: 10
18
        Commodity: "$"
19
        CommodityPos: Before
20
        HasSpace: false
21
        Precision: 0
22
        Decimal: "."
23
    Posting j:5:1-6:1
24
      Account j:5:5-6:0
25
        SubAccount: "assets" j:5:5-5:11
26
        SubAccount: "checking" j:5:12-6:0
27
      Amount: <elided>
28
  Errors
29
    j:3:5-3:7: expected account name, got ATAT
30
    j:4:5-4:6: expected account name, got AT