math-optim/algo/util_test.go
surtur b24f7db46f
All checks were successful
continuous-integration/drone/push Build is passing
go(algo/util): add createFolder func
2022-06-28 23:40:35 +02:00

25 lines
441 B
Go

// Copyright 2022 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: GPL-3.0-or-later
package algo
import (
"os"
"testing"
)
// nolint: ifshort
func TestCreateFolder(t *testing.T) {
// let's assume this will never exist in a clean project...
testPath := "whatever-path"
got := createFolder(testPath)
var want error
if want != got {
t.Errorf("issue creating folder: got %q", got.Error())
}
os.RemoveAll(testPath)
}