test: examples for reproducing journal errors

This commit is contained in:
Simon Michael 2022-03-17 17:38:26 -10:00
parent e6bf04fce3
commit 6510ba3c95
11 changed files with 62 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Journals for reproducing all of hledger's journal error messages.
Each has an easy command at the top for reproducing in the CLI.
Some have additional declarations to help with reproducing in Emacs with flycheck-hledger.

View File

@ -0,0 +1,4 @@
# hledger check
1/1
a 0 = 1

View File

@ -0,0 +1,4 @@
# hledger check
2022/1/32
(a:c) 1

View File

@ -0,0 +1,3 @@
# hledger check
alias /(/ = a

View File

@ -0,0 +1,12 @@
# hledger check uniqueleafnames
account a:c ; XXX check uniqueleafnames doesn't notice these
account b:c ;
commodity 1.
payee p
1/1 p
(a:c) 1
1/1 p
(b:c) 1

View File

@ -0,0 +1,3 @@
# hledger check
1

View File

@ -0,0 +1,4 @@
# hledger check
1/1
a 1

View File

@ -0,0 +1,4 @@
# hledger check accounts
1/1
(a) 1

View File

@ -0,0 +1,6 @@
# hledger check commodities
account a
1/1
(a) A 1

View File

@ -0,0 +1,7 @@
# hledger check payees
account a
commodity A
1/1 p
(a) A 1

View File

@ -0,0 +1,11 @@
# hledger check ordereddates
account a
commodity 1.
payee p
1/2 p
(a) 1
1/1 p
(a) 1