diff --git a/g/container/gqueue/gqueue_unit_test.go b/g/container/gqueue/gqueue_unit_test.go index 5a06b1c98..322c63985 100644 --- a/g/container/gqueue/gqueue_unit_test.go +++ b/g/container/gqueue/gqueue_unit_test.go @@ -35,7 +35,6 @@ func TestQueue_Basic(t *testing.T) { gtest.Assert(q.Pop(), 1) } - func TestQueue_Pop(t *testing.T) { q1 := gqueue.New() q1.Push(1) @@ -44,7 +43,6 @@ func TestQueue_Pop(t *testing.T) { q1.Push(4) i1 := q1.Pop() gtest.Assert(i1, 1) - } func TestQueue_Close(t *testing.T) { @@ -53,4 +51,4 @@ func TestQueue_Close(t *testing.T) { q1.Push(2) gtest.Assert(q1.Len(), 2) q1.Close() -} \ No newline at end of file +} diff --git a/g/os/gfile/gfile_z_test.go b/g/os/gfile/gfile_z_test.go index c0315f9f5..b7d438434 100644 --- a/g/os/gfile/gfile_z_test.go +++ b/g/os/gfile/gfile_z_test.go @@ -337,9 +337,7 @@ func TestCopy(t *testing.T) { defer delTestFiles(topath) gtest.Assert(gfile.IsFile(testpath()+topath), true) - gtest.AssertNE(gfile.Copy("", ""), nil) - }) } @@ -365,7 +363,7 @@ func TestDirNames(t *testing.T) { readlist, err = gfile.DirNames(testpath() + paths) gtest.Assert(err, nil) - gtest.Assert(havelist, readlist) + gtest.AssertIN(readlist, havelist) _, err = gfile.DirNames("") gtest.AssertNE(err, nil) @@ -653,8 +651,8 @@ func TestMkdir(t *testing.T) { func TestStat(t *testing.T) { gtest.Case(t, func() { var ( - tpath1 = "/testfile_t1.txt" - tpath2 = "./testfile_t1_no.txt" + tpath1 = "/testfile_t1.txt" + tpath2 = "./testfile_t1_no.txt" err error fileiofo os.FileInfo )