Skip to content

Commit

Permalink
Merge pull request #24 from shake551/fix-type-assertion
Browse files Browse the repository at this point in the history
replace int to float64
  • Loading branch information
SuguruOoki authored Sep 13, 2022
2 parents 2aec5af + cf988f6 commit e204e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _test/sta9/sta9_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestStation9(t *testing.T) {
diff := cmp.Diff(got, want, cmpopts.IgnoreMapEntries(func(k string, v interface{}) bool {
switch k {
case "id":
if vv, _ := v.(int); vv == 0 {
if vv, _ := v.(float64); vv == 0 {
t.Errorf("id を数値に変換できません, got = %s", k)
}
return true
Expand Down

0 comments on commit e204e9c

Please sign in to comment.