2022-06-01 16:51:45 +02:00
|
|
|
package tools
|
2022-05-23 11:13:42 +02:00
|
|
|
|
|
|
|
import (
|
|
|
|
"katenary/compose"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Test_PathToName(t *testing.T) {
|
|
|
|
path := compose.GetCurrentDir() + "/envéfoo.file"
|
|
|
|
name := PathToName(path)
|
|
|
|
if name != "env-foo-file" {
|
|
|
|
t.Error("Expected env-foo-file, got ", name)
|
|
|
|
}
|
|
|
|
}
|