Skip to content

Commit

Permalink
removed t.Run() from Test_choose() so it'll pass the Go 1.6 test on t…
Browse files Browse the repository at this point in the history
…ravis-ci...
  • Loading branch information
quillaja committed Jul 16, 2018
1 parent 172ac47 commit 8829afb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mgl32/shapes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ func Test_choose(t *testing.T) {
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := []int{}
fail := false
for k := 0; k < tt.n; k++ {
got = append(got, choose(tt.n, k))
fail = got[k] != tt.want[k]
}
if fail {
t.Errorf("choose() = %v, want %v", got, tt.want)
}
})
// t.Run(tt.name, func(t *testing.T) {
got := []int{}
fail := false
for k := 0; k < tt.n; k++ {
got = append(got, choose(tt.n, k))
fail = got[k] != tt.want[k]
}
if fail {
t.Errorf("choose() = %v, want %v", got, tt.want)
}
// })
}
}

0 comments on commit 8829afb

Please sign in to comment.