go(algo_test): add more checks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-07-16 17:01:01 +02:00
parent 0169196a93
commit c47951f3ea
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -25,6 +25,12 @@ func TestDoRandomSearchExec(t *testing.T) {
if err := os.RemoveAll(picsDir); err != nil {
t.Error(err)
}
// if `stat` on picsDir succeeds now, something is wrong (namely the
// clean-up apparently did not succeed).
if _, err := os.Stat(picsDir); err == nil {
t.Error("picsDir should have already been cleaned up")
}
}
func TestDoSHCExec(t *testing.T) {
@ -39,6 +45,12 @@ func TestDoSHCExec(t *testing.T) {
if err := os.RemoveAll(picsDir); err != nil {
t.Error(err)
}
// if `stat` on picsDir succeeds now, something is wrong (namely the
// clean-up apparently did not succeed).
if _, err := os.Stat(picsDir); err == nil {
t.Error("picsDir should have already been cleaned up")
}
}
func TestNewValues(t *testing.T) {