go(algo_test): add more checks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0169196a93
commit
c47951f3ea
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user