From 21f2f168896cf8044069896c29f95205c0653914 Mon Sep 17 00:00:00 2001 From: jroam Date: Sun, 14 Apr 2019 23:21:03 +0800 Subject: [PATCH] go test --- g/os/gfile/gfile_search_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/g/os/gfile/gfile_search_test.go b/g/os/gfile/gfile_search_test.go index 212799358..a19ff1cdd 100644 --- a/g/os/gfile/gfile_search_test.go +++ b/g/os/gfile/gfile_search_test.go @@ -42,8 +42,10 @@ func TestSearch(t *testing.T) { //测试当前目录 tpath2, err = Search(Testpath()+paths1, "./") - gtest.Assert(err, nil) tpath2 = filepath.ToSlash(tpath2) + tempss:=filepath.ToSlash(Testpath()+paths1) + gtest.Assert(tpath2, tempss) + //测试当前目录 tempstr, _ = filepath.Abs("./")