gago/presets_test.go
2021-09-11 12:47:32 +02:00

17 lines
300 B
Go

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")
}
}
}