all repos

clerk @ 1f3a17349e37c8189adb11b8d956acbf3b2080d1

missing tooling for ledger/hledger

clerk/journal/lexer/testdata/automated_transaction.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
tests: switch to txtar, 2 days ago
1
-- input --
2
= ^income
3
    (liabilities:tax)  *.33
4
5
= expenses:gifts
6
    budget:gifts  (amount * -1)
7
-- expect --
8
EQ           "="                  1:1-1:2
9
WHITESPACE   " "                  1:2-1:3
10
TEXT         "^income"            1:3-2:0
11
NEWLINE      "\n"                 2:0-2:1
12
INDENT       "    "               2:1-2:5
13
LPAREN       "("                  2:5-2:6
14
TEXT         "liabilities"        2:6-2:17
15
COLON        ":"                  2:17-2:18
16
TEXT         "tax"                2:18-2:21
17
RPAREN       ")"                  2:21-2:22
18
WHITESPACE   "  "                 2:22-2:24
19
STAR         "*"                  2:24-2:25
20
DECIMAL      ".33"                2:25-3:0
21
NEWLINE      "\n"                 3:0-4:0
22
NEWLINE      "\n"                 4:0-4:1
23
EQ           "="                  4:1-4:2
24
WHITESPACE   " "                  4:2-4:3
25
TEXT         "expenses:gifts"     4:3-5:0
26
NEWLINE      "\n"                 5:0-5:1
27
INDENT       "    "               5:1-5:5
28
TEXT         "budget"             5:5-5:11
29
COLON        ":"                  5:11-5:12
30
TEXT         "gifts"              5:12-5:17
31
WHITESPACE   "  "                 5:17-5:19
32
PARENEXPR    "(amount * -1)"      5:19-6:0
33
NEWLINE      "\n"                 6:0-6:1
34
EOF          ""                   6:1-6:1