Skip to content

Commit

Permalink
cmd/kepubify: Fix pathtransform_test output on Windows
Browse files Browse the repository at this point in the history
This does not change the behaviour; it only fixes missing output
lines when verbose is enabled.
  • Loading branch information
pgaskin committed Jun 14, 2021
1 parent bcce233 commit 19982c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kepubify/pathtransform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,12 +732,12 @@ func (tc transformPathsCase) Run(t *testing.T) {

var ins []string
for in := range pathMap {
ins = append(ins, filepath.ToSlash(in))
ins = append(ins, in)
}
for _, other := range tc.Inputs {
other = filepath.Clean(other)
if _, ok := pathMap[other]; !ok {
ins = append(ins, filepath.ToSlash(other))
ins = append(ins, other)
}
}
sort.Strings(ins)
Expand Down

0 comments on commit 19982c2

Please sign in to comment.