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