diff --git a/parser/fns/main.go b/parser/fns/main.go index 52eb5b0..e0c6686 100644 --- a/parser/fns/main.go +++ b/parser/fns/main.go @@ -32,7 +32,6 @@ func main() { checkErr(err) }() - fmt.Println("package main", "\n") fmt.Println("var SupportedTaxDepartments = map[ConstitutionRegionCode]TaxDepart{") scanner := bufio.NewScanner(file) @@ -45,7 +44,6 @@ func main() { if err != nil { var output string if nextRegion { - //fmt.Println("},") output += "Name: " } fmt.Println(output + "`" + row + "`,") diff --git a/utils/helpers.go b/utils/helpers.go index bec024e..04ac1a6 100644 --- a/utils/helpers.go +++ b/utils/helpers.go @@ -65,7 +65,7 @@ func CodeToInts(code int) []int { for code > 0 { digit := code % 10 res = append([]int{digit}, res...) - code = code / 10 + code /= 10 } return res diff --git a/validate_test.go b/validate_test.go index 7f50799..be5400a 100644 --- a/validate_test.go +++ b/validate_test.go @@ -15,6 +15,7 @@ func Test_Validate(t *testing.T) { func Test_Validate_Unsupported(t *testing.T) { require.Panics(t, func() { - Validate(DocType(100500), "100500") + _, err := Validate(DocType(100500), "100500") + require.NoError(t, err) }) }