1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-12 08:42:29 +08:00

update: update validator test function

This commit is contained in:
dudaodong
2021-11-29 15:53:48 +08:00
parent 7d39d1319b
commit fee6cb17f3
5 changed files with 10 additions and 14 deletions

View File

@@ -87,11 +87,11 @@ func TestCopyFile(t *testing.T) {
}
func TestListFileNames(t *testing.T) {
filesInCurrentPath, err := ListFileNames("./")
filesInCurrentPath, err := ListFileNames("../datetime/")
if err != nil {
t.FailNow()
}
expected := []string{"file.go", "file_test.go"}
expected := []string{"datetime.go", "datetime_test.go"}
if !reflect.DeepEqual(filesInCurrentPath, expected) {
utils.LogFailedTestInfo(t, "ToChar", "./", expected, filesInCurrentPath)
t.FailNow()