all repos

clerk @ e2e9e2b27783c07fe5724268bf7ae828b3aacac7

missing tooling for ledger/hledger

clerk/internal/linter/testdata/orderdate.txtar (view raw)

Oleksandr Smirnov Oleksandr Smirnov
olexsmir@gmail.com
tests: switch to txtar, 2 days ago
1
-- in.journal --
2
2026-01-15 * "Transaction 1"
3
  Expenses:Food      $10
4
  Assets:Cash
5
6
2026-01-10 * "Transaction 2 - out of order (before Txn 1)"
7
  Expenses:Food      $20
8
  Assets:Cash
9
10
2026-01-12 * "Transaction 3 - would slip through old prev logic (12 < 15 but 12 > 10)"
11
  Expenses:Food      $8
12
  Assets:Cash
13
14
2026-02-01 * "Transaction 4"
15
  Expenses:Food      $15
16
  Assets:Cash
17
18
2026-01-20 * "Transaction 5 - out of order (before Txn 4)"
19
  Expenses:Food      $5
20
  Assets:Cash
21
22
2026-03-01 * "Transaction 6"
23
  Expenses:Food      $25
24
  Assets:Cash
25
26
2025-12-01 * "Transaction 7 - entirely before everything"
27
  Expenses:Food      $30
28
  Assets:Cash
29
30
-- expect --
31
in.journal:5:1: orderdate: transaction is out of chronological order (date 2026-01-10 before 2026-01-15)
32
in.journal:9:1: orderdate: transaction is out of chronological order (date 2026-01-12 before 2026-01-15)
33
in.journal:17:1: orderdate: transaction is out of chronological order (date 2026-01-20 before 2026-02-01)
34
in.journal:25:1: orderdate: transaction is out of chronological order (date 2025-12-01 before 2026-03-01)