all repos

clerk @ f3b258b

missing tooling for ledger/hledger

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