dev: errors: small csv error test fixes
This commit is contained in:
parent
7ecfe23a91
commit
41cd8c3e06
@ -453,11 +453,7 @@ line of conditional table should have 2 values, but this one has only 1
|
||||
|
||||
### csvnoinclude
|
||||
```
|
||||
hledger: Error: /Users/simon/src/hledger/hledger/test/errors/./csvnoinclude.j:4:23:
|
||||
|
|
||||
4 | include csvinclude.csv
|
||||
| ^
|
||||
No existing files match pattern: csvinclude.csv
|
||||
hledger: Error: sorry, CSV files can't be included yet
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env -S hledger print -f
|
||||
#!/usr/bin/env -S hledger check -f
|
||||
# Non-zero for both amount-in and amount-out.
|
||||
2022-01-01,1,
|
||||
2022-01-02,1,0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$$$ hledger print -f csvamountonenonzero.csv
|
||||
$$$ hledger check -f csvamountonenonzero.csv
|
||||
>>>2 /hledger: Error: multiple non-zero amounts assigned,
|
||||
please ensure just one. \(https:\/\/hledger.org\/csv.html#amount\)
|
||||
record values: "2022-01-03","1","2"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env -S hledger print -f
|
||||
#!/usr/bin/env -S hledger check -f
|
||||
# Unparseable amount.
|
||||
2022-01-01,1
|
||||
2022-01-02,$1
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$$$ hledger print -f csvamountparse.csv
|
||||
$$$ hledger check -f csvamountparse.csv
|
||||
>>>2 /hledger: Error: error: could not parse "badamount" as an amount
|
||||
record values: "2022-01-03","badamount"
|
||||
the amount rule is: %2
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
#!/usr/bin/env -S hledger print -f
|
||||
#!/usr/bin/env -S hledger check -f
|
||||
# Unparseable balance amount.
|
||||
2022-01-03,badbalance
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
$$$ hledger print -f csvbalanceparse.csv
|
||||
$$$ hledger check -f csvbalanceparse.csv
|
||||
>>>2 /hledger: Error: error: could not parse "badbalance" as balance1 amount
|
||||
record values: "2022-01-03","badbalance"
|
||||
the balance rule is: %2
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env -S hledger print -f
|
||||
# See rules (missing/bad date-format rule).
|
||||
# Note check doesn't show this error; print was needed.
|
||||
# Note check doesn't show this error, print is needed.
|
||||
a,b
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env -S hledger check -f
|
||||
# Trying to include a CSV file.
|
||||
|
||||
include csvinclude.csv
|
||||
include csvnoinclude.csv
|
||||
|
||||
|
||||
|
||||
@ -1,9 +1,4 @@
|
||||
$$$ hledger check -f csvnoinclude.j
|
||||
>>>2 /hledger: Error: .*csvnoinclude.j:4:23:
|
||||
\|
|
||||
4 \| include csvinclude.csv
|
||||
\| \^
|
||||
No existing files match pattern: csvinclude.csv
|
||||
|
||||
>>>2 /hledger: Error: sorry, CSV files can't be included yet
|
||||
/
|
||||
>>>= 1
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env -S hledger print -f
|
||||
# Status value not parseable.
|
||||
# check not sufficient to show this error, print is needed
|
||||
2022-01-01,*
|
||||
2022-01-02,!
|
||||
2022-01-03,
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
skip 2
|
||||
skip 3
|
||||
date %1
|
||||
status %2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user