math-optim/algo/randomSearch_test.go
leo 3f77c573a6
All checks were successful
continuous-integration/drone/push Build is passing
chore: 2023
2023-01-12 23:35:51 +01:00

20 lines
446 B
Go

// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package algo
import "testing"
func TestFmtRandomSearchOut(t *testing.T) {
want := " ***  random search: this is so random..."
got := fmtRandomSearchOut("this is so random...")
if want != got {
t.Errorf("strings do not equal, want: %q, got: %q", want, got)
}
}
func TestPrintRandomSearch(t *testing.T) {
printRandomSearch("whatever")
}