Input validation tests for importTaxData.
This commit is contained in:
parent
95a327ea62
commit
c613e38995
7 changed files with 115 additions and 8 deletions
3
t/supporting_collateral/taxTables/badTaxTable.csv
Normal file
3
t/supporting_collateral/taxTables/badTaxTable.csv
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
field,value,taxRate
|
||||
state,5.0
|
||||
code,53701,0.5
|
||||
|
8
t/supporting_collateral/taxTables/commentedTaxTable.csv
Normal file
8
t/supporting_collateral/taxTables/commentedTaxTable.csv
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
taxRate,value,field
|
||||
#header lines above
|
||||
|
||||
#This is just a zip code.
|
||||
0.5,53701,code
|
||||
|
||||
|
||||
5.0,Wisconsin,state #Wisconsin is expensive!
|
||||
|
3
t/supporting_collateral/taxTables/emptyTaxTable.csv
Normal file
3
t/supporting_collateral/taxTables/emptyTaxTable.csv
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
field,value,taxRate
|
||||
#state,Wisconsin,5.0
|
||||
#code,53701,0.5
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
field,value,taxRate
|
||||
country,USA,0.1
|
||||
state,Wisconsin,5.0
|
||||
city,Madcity-Baby,0.5
|
||||
code,53701,0.5
|
||||
|
|
|
|||
|
3
t/supporting_collateral/taxTables/orderedTaxTable.csv
Normal file
3
t/supporting_collateral/taxTables/orderedTaxTable.csv
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
taxRate,value,field
|
||||
5.0,Wisconsin,state
|
||||
0.5,53701,code
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue