math-optim/algo/algo_test.go
surtur c0d8f8e6e8
All checks were successful
continuous-integration/drone/push Build is passing
go(algo): rework the plotting func, add util.go
2022-06-20 03:32:48 +02:00

36 lines
533 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) {
// TODO(me): figure out how to test this.
// wg.Add(1)
// go DoRandomSearch(&wg)
// wg.Wait()
}
func TestDoSHCExec(t *testing.T) {
wg.Add(1)
go DoStochasticHillClimbing(&wg)
wg.Wait()
}
func TestNewValues(t *testing.T) {
if v := newValues(); v == nil {
t.Error("failed to get values from newValues()")
}
}