math-optim/algo/algo_test.go
surtur ab14e97f16
All checks were successful
continuous-integration/drone/push Build is passing
go: add RandomSearch,SHC algos
2022-06-14 22:34:52 +02:00

28 lines
355 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package algo
import (
"sync"
"testing"
)
var wg sync.WaitGroup
func TestDoRandomSearchExec(t *testing.T) {
wg.Add(1)
go DoRandomSearch(&wg)
wg.Wait()
}
func TestDoSHCExec(t *testing.T) {
wg.Add(1)
go DoStochasticHillClimbing(&wg)
wg.Wait()
}