Skip to content

Commit

Permalink
[tanghaibao] Fix call to generateOffsprings in models_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghaibao committed Jan 10, 2018
1 parent ca3dbf8 commit 3120a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models_test.go
Expand Up @@ -163,7 +163,7 @@ func TestGenerateOffsprings(t *testing.T) {
indis = newIndividuals(20, NewVector, rng)
)
for _, n := range []int{0, 1, 3, 10} {
var offsprings, _ = generateOffsprings(n, indis, SelTournament{1}, rng)
var offsprings, _ = generateOffsprings(n, indis, SelTournament{1}, 1.0, rng)
if len(offsprings) != n {
t.Error("GenerateOffsprings didn't produce the expected number of offsprings")
}
Expand Down

0 comments on commit 3120a02

Please sign in to comment.