all repos

clerk @ e2e9e2b

missing tooling for ledger/hledger

clerk/journal/parser/testdata/illegal_between_transactions.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
    assets:checking
5
@@@
6
2024/01/02 salary
7
    income:salary  $1000
8
    assets:checking
9
-- expect --
10
Journal
11
  Transaction j:1:1-4:1
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
    Posting j:3:1-4:1
26
      Account j:3:5-4:0
27
        SubAccount: "assets" j:3:5-3:11
28
        SubAccount: "checking" j:3:12-4:0
29
      Amount: <elided>
30
  Transaction j:5:1-8:1
31
    Date: 2024/01/02
32
    Payee: "salary" j:5:12-6:0
33
    Posting j:6:1-7:1
34
      Account j:6:5-6:18
35
        SubAccount: "income" j:6:5-6:11
36
        SubAccount: "salary" j:6:12-6:18
37
      Amount j:6:20-6:20
38
        Quantity: 1000
39
        Commodity: "$"
40
        CommodityPos: Before
41
        HasSpace: false
42
        Precision: 0
43
        Decimal: "."
44
    Posting j:7:1-8:1
45
      Account j:7:5-8:0
46
        SubAccount: "assets" j:7:5-7:11
47
        SubAccount: "checking" j:7:12-8:0
48
      Amount: <elided>
49
  Errors
50
    j:4:1-4:2: unexpected token AT