Skip to content

Commit

Permalink
test: 修正测试用例错误
Browse files Browse the repository at this point in the history
  • Loading branch information
caixw committed Oct 15, 2024
1 parent 81919d0 commit f2bffb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func TestPkgSourceDir(t *testing.T) {

dir, err = PkgSourceDir("github.com/issue9/assert/v4", "./", false)
a.NotError(err).FileExists(dir).
True(strings.HasSuffix(filepath.ToSlash(dir), "assert/[email protected].0"))
True(strings.HasSuffix(filepath.ToSlash(dir), "assert/[email protected].1"))

dir, err = PkgSourceDir("github.com/issue9/assert/v4/rest", "./", false)
a.NotError(err).FileExists(dir).
True(strings.HasSuffix(filepath.ToSlash(dir), "assert/[email protected].0/rest"))
True(strings.HasSuffix(filepath.ToSlash(dir), "assert/[email protected].1/rest"))

dir, err = PkgSourceDir("github.com/issue9/assertxx", "./", false)
a.ErrorIs(err, fs.ErrNotExist).Empty(dir)
Expand Down

0 comments on commit f2bffb2

Please sign in to comment.