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() {
3232 checkErr (err )
3333 }()
3434
35- fmt .Println ("package main" , "\n " )
3635 fmt .Println ("var SupportedTaxDepartments = map[ConstitutionRegionCode]TaxDepart{" )
3736
3837 scanner := bufio .NewScanner (file )
@@ -45,7 +44,6 @@ func main() {
4544 if err != nil {
4645 var output string
4746 if nextRegion {
48- //fmt.Println("},")
4947 output += "Name: "
5048 }
5149 fmt .Println (output + "`" + row + "`," )
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ func CodeToInts(code int) []int {
6565 for code > 0 {
6666 digit := code % 10
6767 res = append ([]int {digit }, res ... )
68- code = code / 10
68+ code /= 10
6969 }
7070
7171 return res
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ func Test_Validate(t *testing.T) {
1515
1616func Test_Validate_Unsupported (t * testing.T ) {
1717 require .Panics (t , func () {
18- Validate (DocType (100500 ), "100500" )
18+ _ , err := Validate (DocType (100500 ), "100500" )
19+ require .NoError (t , err )
1920 })
2021}
You can’t perform that action at this time.
0 commit comments