From d7360e3c297d9bc5dd005e0416ee7cf299c3b0ef Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 24 Apr 2022 20:03:50 -1000 Subject: [PATCH] dev: tests: errors: update tests/readme (#1436) --- hledger/test/errors/README.md | 4 ++-- hledger/test/errors/accounts.test | 6 +++--- hledger/test/errors/assertions.test | 6 +++--- hledger/test/errors/balanced.test | 6 +++--- hledger/test/errors/balancednoautoconversion.test | 6 +++--- hledger/test/errors/commodities.test | 6 +++--- hledger/test/errors/ordereddates.test | 6 +++--- hledger/test/errors/parseable-dates.test | 10 +++++----- hledger/test/errors/parseable-regexps.test | 10 +++++----- hledger/test/errors/parseable.test | 6 +++--- hledger/test/errors/payees.test | 6 +++--- hledger/test/errors/uniqueleafnames.test | 6 +++--- 12 files changed, 39 insertions(+), 39 deletions(-) diff --git a/hledger/test/errors/README.md b/hledger/test/errors/README.md index 722fac9a5efa..0a2e2b65c3de 100644 --- a/hledger/test/errors/README.md +++ b/hledger/test/errors/README.md @@ -100,7 +100,7 @@ Notes (see also [#1436][]): -hledger 1.25.99-gfc3d9d407-20220424 error messages: +hledger 1.25.99-g9bff671b5-20220424 error messages: ### accounts ``` @@ -167,7 +167,7 @@ hledger: Error: /Users/simon/src/hledger/hledger/test/errors/./ordereddates.j:10 10 | 2022-01-01 p | ^^^^^^^^^^ | (a) 1 -transaction's date is out of order with previous transaction's date 2022-01-02 +transaction date is out of order with previous transaction date 2022-01-02 ``` diff --git a/hledger/test/errors/accounts.test b/hledger/test/errors/accounts.test index e082d78c0589..79c152046d54 100644 --- a/hledger/test/errors/accounts.test +++ b/hledger/test/errors/accounts.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/assertions.test b/hledger/test/errors/assertions.test index dbc77555ed94..0e2a6d46231c 100644 --- a/hledger/test/errors/assertions.test +++ b/hledger/test/errors/assertions.test @@ -1,6 +1,5 @@ $$$ hledger check -f assertions.j ->>>2 -hledger: Error: balance assertion: /Users/simon/src/hledger/hledger/test/errors/assertions.j:4:8 +>>>2 /hledger: Error: .*assertions.j:4:8 transaction: 2022-01-01 a 0 = 1 @@ -13,4 +12,5 @@ calculated: 0 asserted: 1 difference: 1 ->>>=1 +/ +>>>= 1 \ No newline at end of file diff --git a/hledger/test/errors/balanced.test b/hledger/test/errors/balanced.test index 2cd41e99a443..0ac26e501316 100644 --- a/hledger/test/errors/balanced.test +++ b/hledger/test/errors/balanced.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/balancednoautoconversion.test b/hledger/test/errors/balancednoautoconversion.test index fc3f54b745c5..69ad32145ad3 100644 --- a/hledger/test/errors/balancednoautoconversion.test +++ b/hledger/test/errors/balancednoautoconversion.test @@ -1,6 +1,5 @@ $$$ 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 @@ -8,4 +7,5 @@ real postings' sum should be 0 but is: 1 A a 1 A b -1 B ->>>=1 +/ +>>>= 1 \ No newline at end of file diff --git a/hledger/test/errors/commodities.test b/hledger/test/errors/commodities.test index 508ff9a533b7..6ecd7c4665eb 100644 --- a/hledger/test/errors/commodities.test +++ b/hledger/test/errors/commodities.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/ordereddates.test b/hledger/test/errors/ordereddates.test index f6c8cf8456d7..7cc02a644021 100644 --- a/hledger/test/errors/ordereddates.test +++ b/hledger/test/errors/ordereddates.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/parseable-dates.test b/hledger/test/errors/parseable-dates.test index d237e3884c93..b08e652f92ef 100644 --- a/hledger/test/errors/parseable-dates.test +++ b/hledger/test/errors/parseable-dates.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/parseable-regexps.test b/hledger/test/errors/parseable-regexps.test index 8f20f3bb721f..958e5a8b3f5c 100644 --- a/hledger/test/errors/parseable-regexps.test +++ b/hledger/test/errors/parseable-regexps.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/parseable.test b/hledger/test/errors/parseable.test index def3a42ff89f..e99de9e52c01 100644 --- a/hledger/test/errors/parseable.test +++ b/hledger/test/errors/parseable.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/payees.test b/hledger/test/errors/payees.test index 0904cf655167..c46874bdc64e 100644 --- a/hledger/test/errors/payees.test +++ b/hledger/test/errors/payees.test @@ -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 \ No newline at end of file diff --git a/hledger/test/errors/uniqueleafnames.test b/hledger/test/errors/uniqueleafnames.test index 7020eb97498f..6934a3e32d1a 100644 --- a/hledger/test/errors/uniqueleafnames.test +++ b/hledger/test/errors/uniqueleafnames.test @@ -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 \ No newline at end of file