gago/presets_test.go

18 lines
300 B
Go
Raw Permalink Normal View History

2021-09-11 12:47:32 +02:00
package gago
import "testing"
var presets = []GA{
Generational(NewVector),
SimulatedAnnealing(NewVector),
HillClimbing(NewVector),
}
func TestPresetsValid(t *testing.T) {
for _, preset := range presets {
if preset.Validate() != nil {
t.Error("The preset parameters are invalid")
}
}
}