mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 20:28:17 +08:00
edit test
This commit is contained in:
parent
abedd3c5bf
commit
11191c746a
@ -15,11 +15,13 @@ func TestSearch(t *testing.T) {
|
|||||||
tpath string
|
tpath string
|
||||||
tpath2 string
|
tpath2 string
|
||||||
tempstr string
|
tempstr string
|
||||||
|
ypaths1 string
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
|
|
||||||
CreateDir(paths1)
|
CreateDir(paths1)
|
||||||
defer DelTestFiles(paths1)
|
defer DelTestFiles(paths1)
|
||||||
|
ypaths1=paths1
|
||||||
|
|
||||||
tpath, err = Search(Testpath() + paths1)
|
tpath, err = Search(Testpath() + paths1)
|
||||||
gtest.Assert(err, nil)
|
gtest.Assert(err, nil)
|
||||||
@ -51,7 +53,7 @@ func TestSearch(t *testing.T) {
|
|||||||
//测试当前目录
|
//测试当前目录
|
||||||
tempstr, _ = filepath.Abs("./")
|
tempstr, _ = filepath.Abs("./")
|
||||||
tempstr = Testpath()
|
tempstr = Testpath()
|
||||||
paths1 = tempstr + paths1
|
paths1 = tempstr + ypaths1
|
||||||
paths1 = filepath.ToSlash(paths1)
|
paths1 = filepath.ToSlash(paths1)
|
||||||
|
|
||||||
gtest.Assert(tpath2, paths1)
|
gtest.Assert(tpath2, paths1)
|
||||||
|
Loading…
Reference in New Issue
Block a user