Skip to content

Commit

Permalink
Add check of error in int slice test
Browse files Browse the repository at this point in the history
  • Loading branch information
n10v committed Aug 20, 2016
1 parent 6ca9554 commit b38ddae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions int_slice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func TestIS(t *testing.T) {
}
}
getIS, err := f.GetIntSlice("is")
if err != nil {
t.Fatalf("got error: %v", err)
}
for i, v := range getIS {
d, err := strconv.Atoi(vals[i])
if err != nil {
Expand Down

0 comments on commit b38ddae

Please sign in to comment.