adept/util/env_test.go
Gregory Ballantine 6d1a24cefb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Added some basic unit tests for some of the utility functions
2022-09-01 14:25:02 -04:00

20 lines
455 B
Go

package util
import "testing"
func TestResolveTilde(t *testing.T) {
resolvedPath := ResolveTilde("~")
if resolvedPath == "~" {
t.Logf("ResolveTilde returned '%s'; it should have expanded to an absolute path.", resolvedPath)
}
}
func TestResolveTildePath(t *testing.T) {
resolvedPath := ResolveTilde("~/test")
if resolvedPath == "~/test" {
t.Logf("ResolveTilde returned '%s'; it should have expanded to an absolute path.", resolvedPath)
}
}