-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev: tests: errors: update tests/readme (#1436)
- Loading branch information
1 parent
921e489
commit d7360e3
Showing
12 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$$$ hledger check accounts -f accounts.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/accounts.j:4:6-6: | ||
>>>2 /hledger: Error: .*accounts.j:4:6-6: | ||
| 2022-01-01 | ||
4 | (a) 1 | ||
| ^ | ||
undeclared account "a" | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$$$ hledger check -f balanced.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/balanced.j:3-4 | ||
>>>2 /hledger: Error: .*balanced.j:3-4 | ||
could not balance this transaction: | ||
real postings' sum should be 0 but is: 1 | ||
2022-01-01 | ||
a 1 | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
$$$ hledger check balancednoautoconversion -f balancednoautoconversion.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/balancednoautoconversion.j:6-8 | ||
>>>2 /hledger: Error: .*balancednoautoconversion.j:6-8 | ||
could not balance this transaction: | ||
real postings' sum should be 0 but is: 1 A | ||
-1 B | ||
2022-01-01 | ||
a 1 A | ||
b -1 B | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$$$ hledger check commodities -f commodities.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/commodities.j:6:21-23: | ||
>>>2 /hledger: Error: .*commodities.j:6:21-23: | ||
| 2022-01-01 | ||
6 | (a) A 1 | ||
| ^^^ | ||
undeclared commodity "A" | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
$$$ hledger check ordereddates -f ordereddates.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/ordereddates.j:10:1-10: | ||
>>>2 /hledger: Error: .*ordereddates.j:10:1-10: | ||
10 | 2022-01-01 p | ||
| ^^^^^^^^^^ | ||
| (a) 1 | ||
transaction date is out of order with previous transaction date 2022-01-02 | ||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$$$ hledger check -f parseable-dates.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/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 | ||
well-formed but invalid date: 2022\/1\/32 | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$$$ hledger check -f parseable-regexps.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/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 could not be compiled: \( | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
$$$ hledger check -f parseable.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/parseable.j:3:2: | ||
>>>2 /hledger: Error: .*parseable.j:3:2: | ||
| | ||
3 | 1 | ||
| ^ | ||
unexpected newline | ||
expecting date separator or digit | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$$$ hledger check payees -f payees.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/payees.j:6:12-12: | ||
>>>2 /hledger: Error: .*payees.j:6:12-12: | ||
6 | 2022-01-01 p | ||
| ^ | ||
| (a) A 1 | ||
undeclared payee "p" | ||
|
||
>>>=1 | ||
/ | ||
>>>= 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
$$$ hledger check uniqueleafnames -f uniqueleafnames.j | ||
>>>2 | ||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/uniqueleafnames.j:9:8-8: | ||
>>>2 /hledger: Error: .*uniqueleafnames.j:9:8-8: | ||
| 2022-01-01 p | ||
9 | (a:c) 1 | ||
| ^ | ||
account leaf name "c" is not unique | ||
it is used in account names: "a:c", "b:c" | ||
>>>=1 | ||
/ | ||
>>>= 1 |