Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
ya betta pawn it
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Oct 18, 2019
1 parent 0e07c89 commit 38ea627
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 4 additions & 8 deletions pkging/mem/embed_test.go
Expand Up @@ -114,10 +114,8 @@ var pubWalk = []string{
"app:/",
"app:/public",
"app:/public/images",
"app:/public/images/mark-small.png",
"app:/public/images/mark.png",
"app:/public/images/mark_250px.png",
"app:/public/images/mark_400px.png",
"app:/public/images/img1.png",
"app:/public/images/img2.png",
"app:/public/index.html",
}

Expand All @@ -127,10 +125,8 @@ var rootWalk = []string{
"app:/main.go",
"app:/public",
"app:/public/images",
"app:/public/images/mark-small.png",
"app:/public/images/mark.png",
"app:/public/images/mark_250px.png",
"app:/public/images/mark_400px.png",
"app:/public/images/img1.png",
"app:/public/images/img2.png",
"app:/public/index.html",
"app:/templates",
"app:/templates/a.txt",
Expand Down
3 changes: 2 additions & 1 deletion pkging/pkgtest/file.go
Expand Up @@ -92,13 +92,14 @@ func (s Suite) Test_File_Readdir(t *testing.T) {

infos, err = dir.Readdir(-1)
r.NoError(err)
r.Len(infos, 1)
r.Len(infos, 2)

sort.Slice(infos, func(i, j int) bool {
return infos[i].Name() < infos[j].Name()
})

r.Equal("img1.png", infos[0].Name())
r.Equal("img2.png", infos[1].Name())

})
}
Expand Down
2 changes: 2 additions & 0 deletions pkging/pkgtest/suite.go
Expand Up @@ -474,10 +474,12 @@ func (s Suite) Test_Walk(t *testing.T) {

exp := []string{
"app:/",
"app:/go.mod",
"app:/main.go",
"app:/public",
"app:/public/images",
"app:/public/images/img1.png",
"app:/public/images/img2.png",
"app:/public/index.html",
"app:/templates",
"app:/templates/a.txt",
Expand Down

0 comments on commit 38ea627

Please sign in to comment.