dev: errors: update tests
This commit is contained in:
parent
5a343bf090
commit
96cbc4697c
@ -1,9 +1,15 @@
|
|||||||
$$$ hledger check accounts -f accounts.j
|
$$$ hledger check accounts -f accounts.j
|
||||||
>>>2 /hledger: Error: .*accounts.j:4:6-6:
|
>>>2 /hledger: Error: .*accounts.j:4:
|
||||||
| 2022-01-01
|
\| 2022-01-01
|
||||||
4 | (a) 1
|
4 \| \(a\) 1
|
||||||
| ^
|
\| \^
|
||||||
undeclared account "a"
|
|
||||||
|
Strict account checking is enabled, and
|
||||||
|
account "a" has not been declared.
|
||||||
|
Consider adding an account directive. Examples:
|
||||||
|
|
||||||
|
account a
|
||||||
|
account a ; type:A ; \(L,E,R,X,C,V\)
|
||||||
|
|
||||||
/
|
/
|
||||||
>>>= 1
|
>>>= 1
|
||||||
@ -1,14 +1,15 @@
|
|||||||
$ hledger check -f assertions.j
|
$$$ hledger check -f assertions.j
|
||||||
>2 /hledger: Error: balance assertion: .*assertions.j:4:8:
|
>>>2 /hledger: Error: .*assertions.j:4:8:
|
||||||
| 2022-01-01
|
\| 2022-01-01
|
||||||
4 | a 0 = 1
|
4 \| a 0 = 1
|
||||||
| ^^^^^^^^^^
|
\| \^\^\^
|
||||||
|
|
||||||
account: a
|
|
||||||
commodity:
|
|
||||||
asserted: 0
|
|
||||||
actual: 1
|
|
||||||
difference: 1
|
|
||||||
|
|
||||||
|
This balance assertion failed.
|
||||||
|
In account: a
|
||||||
|
and commodity:
|
||||||
|
this balance was asserted: 1
|
||||||
|
but the actual balance is: 0
|
||||||
|
a difference of: 1
|
||||||
|
.*
|
||||||
/
|
/
|
||||||
>=1
|
>>>= 1
|
||||||
@ -1,9 +1,10 @@
|
|||||||
$ hledger check -f balanced.j
|
$$$ hledger check -f balanced.j
|
||||||
>2 /hledger: Error: unbalanced transaction: .*balanced.j:3-4:
|
>>>2 /hledger: Error: .*balanced.j:3-4:
|
||||||
3 | 2022-01-01
|
3 \| 2022-01-01
|
||||||
| a 1
|
\| a 1
|
||||||
|
|
||||||
real postings' sum should be 0 but is: 1
|
|
||||||
|
|
||||||
|
This transaction is unbalanced.
|
||||||
|
The real postings' sum should be 0 but is: 1
|
||||||
|
Consider adjusting this entry's amounts, or adding missing postings.
|
||||||
/
|
/
|
||||||
>= 1
|
>>>= 1
|
||||||
@ -1,11 +1,12 @@
|
|||||||
$ hledger check balancednoautoconversion -f balancednoautoconversion.j
|
$$$ hledger check balancednoautoconversion -f balancednoautoconversion.j
|
||||||
>2 /hledger: Error: unbalanced transaction: .*balancednoautoconversion.j:6-8:
|
>>>2 /hledger: Error: .*balancednoautoconversion.j:6-8:
|
||||||
6 | 2022-01-01
|
6 \| 2022-01-01
|
||||||
| a 1 A
|
\| a 1 A
|
||||||
| b -1 B
|
\| b -1 B
|
||||||
|
|
||||||
real postings' sum should be 0 but is: 1 A
|
|
||||||
-1 B
|
|
||||||
|
|
||||||
|
This multi-commodity transaction is unbalanced.
|
||||||
|
Automatic commodity conversion is not enabled.
|
||||||
|
The real postings' sum should be 0 but is: 1 A, -1 B
|
||||||
|
.*
|
||||||
/
|
/
|
||||||
>= 1
|
>>>= 1
|
||||||
@ -1,9 +1,15 @@
|
|||||||
$$$ hledger check commodities -f commodities.j
|
$$$ hledger check commodities -f commodities.j
|
||||||
>>>2 /hledger: Error: .*commodities.j:6:21-23:
|
>>>2 /hledger: Error: .*commodities.j:6:
|
||||||
| 2022-01-01
|
\| 2022-01-01
|
||||||
6 | (a) A 1
|
6 \| \(a\) A 1
|
||||||
| ^^^
|
\| \^\^\^
|
||||||
undeclared commodity "A"
|
|
||||||
|
Strict commodity checking is enabled, and
|
||||||
|
commodity "A" has not been declared.
|
||||||
|
Consider adding a commodity directive. Examples:
|
||||||
|
|
||||||
|
commodity A1000.00
|
||||||
|
commodity 1.000,00 A
|
||||||
|
|
||||||
/
|
/
|
||||||
>>>= 1
|
>>>= 1
|
||||||
@ -1,8 +1,14 @@
|
|||||||
$$$ hledger check ordereddates -f ordereddates.j
|
$$$ hledger check ordereddates -f ordereddates.j
|
||||||
>>>2 /hledger: Error: .*ordereddates.j:10:1-10:
|
>>>2 /hledger: Error: .*ordereddates.j:10:
|
||||||
10 | 2022-01-01 p
|
7 \| 2022-01-02 p
|
||||||
| ^^^^^^^^^^
|
\| \(a\) 1
|
||||||
| (a) 1
|
|
||||||
transaction date is out of order with previous transaction date 2022-01-02
|
10 \| 2022-01-01 p
|
||||||
|
\| \^\^\^\^\^\^\^\^\^\^
|
||||||
|
\| \(a\) 1
|
||||||
|
|
||||||
|
Ordered dates checking is enabled, and this transaction's
|
||||||
|
date \(2022-01-01\) is out of order with the previous transaction.
|
||||||
|
.*
|
||||||
/
|
/
|
||||||
>>>= 1
|
>>>= 1
|
||||||
@ -1,9 +1,10 @@
|
|||||||
$$$ hledger check -f parseable-dates.j
|
$$$ hledger check -f parseable-dates.j
|
||||||
>>>2 /hledger: Error: .*parseable-dates.j:3:1:
|
>>>2 /hledger: Error: .*parseable-dates.j:3:1:
|
||||||
|
|
\|
|
||||||
3 | 2022\/1\/32
|
3 \| 2022\/1\/32
|
||||||
| ^^^^^^^^^
|
\| \^\^\^\^\^\^\^\^\^
|
||||||
well-formed but invalid date: 2022\/1\/32
|
|
||||||
|
This date is invalid, please correct it: 2022\/1\/32
|
||||||
|
|
||||||
/
|
/
|
||||||
>>>= 1
|
>>>= 1
|
||||||
@ -1,9 +1,11 @@
|
|||||||
$$$ hledger check -f parseable-regexps.j
|
$$$ hledger check -f parseable-regexps.j
|
||||||
>>>2 /hledger: Error: .*parseable-regexps.j:3:8:
|
>>>2 /hledger: Error: .*parseable-regexps.j:3:8:
|
||||||
|
|
\|
|
||||||
3 | alias \/\(\/ = a
|
3 \| alias \/\(\/ = a
|
||||||
| ^
|
\| \^
|
||||||
this regular expression could not be compiled: \(
|
|
||||||
|
This regular expression is malformed, please correct it:
|
||||||
|
\(
|
||||||
|
|
||||||
/
|
/
|
||||||
>>>= 1
|
>>>= 1
|
||||||
@ -1,8 +1,8 @@
|
|||||||
$$$ hledger check -f parseable.j
|
$$$ hledger check -f parseable.j
|
||||||
>>>2 /hledger: Error: .*parseable.j:3:2:
|
>>>2 /hledger: Error: .*parseable.j:3:2:
|
||||||
|
|
\|
|
||||||
3 | 1
|
3 \| 1
|
||||||
| ^
|
\| \^
|
||||||
unexpected newline
|
unexpected newline
|
||||||
expecting date separator or digit
|
expecting date separator or digit
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,14 @@
|
|||||||
$$$ hledger check payees -f payees.j
|
$$$ hledger check payees -f payees.j
|
||||||
>>>2 /hledger: Error: .*payees.j:6:12-12:
|
>>>2 /hledger: Error: .*payees.j:6:
|
||||||
6 | 2022-01-01 p
|
6 \| 2022-01-01 p
|
||||||
| ^
|
\| \^
|
||||||
| (a) A 1
|
\| \(a\) A 1
|
||||||
undeclared payee "p"
|
|
||||||
|
Strict payee checking is enabled, and
|
||||||
|
payee "p" has not been declared.
|
||||||
|
Consider adding a payee directive. Examples:
|
||||||
|
|
||||||
|
payee p
|
||||||
|
|
||||||
/
|
/
|
||||||
>>>= 1
|
>>>= 1
|
||||||
@ -1,9 +1,14 @@
|
|||||||
$$$ hledger check uniqueleafnames -f uniqueleafnames.j
|
$$$ hledger check uniqueleafnames -f uniqueleafnames.j
|
||||||
>>>2 /hledger: Error: .*uniqueleafnames.j:9:8-8:
|
>>>2 /hledger: Error: .*uniqueleafnames.j:12:
|
||||||
| 2022-01-01 p
|
\| 2022-01-01 p
|
||||||
9 | (a:c) 1
|
9 \| \(a:c\) 1
|
||||||
| ^
|
...
|
||||||
account leaf name "c" is not unique
|
\| 2022-01-01 p
|
||||||
it is used in account names: "a:c", "b:c"
|
12 \| \(b:c\) 1
|
||||||
|
\| \^
|
||||||
|
|
||||||
|
Checking for unique account leaf names is enabled, and
|
||||||
|
account leaf name "c" is not unique.
|
||||||
|
.*
|
||||||
/
|
/
|
||||||
>>>= 1
|
>>>= 1
|
||||||
Loading…
Reference in New Issue
Block a user