You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ntool/nfs/info_test.go

19 lines
397 B
Go

1 year ago
package nfs_test
import (
"git.noahlan.cn/noahlan/ntool/nfs"
"git.noahlan.cn/noahlan/ntool/ntest/assert"
"testing"
)
func TestExpandPath(t *testing.T) {
path := "~/.kite"
assert.NotEq(t, path, nfs.Expand(path))
assert.NotEq(t, path, nfs.ExpandPath(path))
assert.NotEq(t, path, nfs.ResolvePath(path))
assert.Eq(t, "", nfs.Expand(""))
assert.Eq(t, "/path/to", nfs.Expand("/path/to"))
}