math-optim/algo/stochasticHillClimbing_test.go
surtur ffc8b90e98
All checks were successful
continuous-integration/drone/push Build is passing
chore(go): print algo-stamps without errors
2022-06-17 19:55:23 +02:00

20 lines
435 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package algo
import "testing"
func TestFmtSHCOut(t *testing.T) {
want := " ***  stochastic hill climbing: oh what a mountain that is!"
got := fmtSHCOut("oh what a mountain that is!")
if want != got {
t.Errorf("strings do not equal, want: %q, got: %q", want, got)
}
}
func TestPrintSHC(t *testing.T) {
printSHC("whatever")
}