File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ func main() {
32
32
checkErr (err )
33
33
}()
34
34
35
- fmt .Println ("package main" , "\n " )
36
35
fmt .Println ("var SupportedTaxDepartments = map[ConstitutionRegionCode]TaxDepart{" )
37
36
38
37
scanner := bufio .NewScanner (file )
@@ -45,7 +44,6 @@ func main() {
45
44
if err != nil {
46
45
var output string
47
46
if nextRegion {
48
- //fmt.Println("},")
49
47
output += "Name: "
50
48
}
51
49
fmt .Println (output + "`" + row + "`," )
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ func CodeToInts(code int) []int {
65
65
for code > 0 {
66
66
digit := code % 10
67
67
res = append ([]int {digit }, res ... )
68
- code = code / 10
68
+ code /= 10
69
69
}
70
70
71
71
return res
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ func Test_Validate(t *testing.T) {
15
15
16
16
func Test_Validate_Unsupported (t * testing.T ) {
17
17
require .Panics (t , func () {
18
- Validate (DocType (100500 ), "100500" )
18
+ _ , err := Validate (DocType (100500 ), "100500" )
19
+ require .NoError (t , err )
19
20
})
20
21
}
You can’t perform that action at this time.
0 commit comments