Skip to content

Commit

Permalink
add ".in" to escapeurl suffix, use "go vet"
Browse files Browse the repository at this point in the history
escapeurl.md should've been called escapeurl.in.md. This change
fixes that.

Start using "go vet" instead of "go tool vet" in .travis.yml,
since the latter has been deprecated as of Go 1.12.
  • Loading branch information
dmitshur committed Mar 11, 2019
1 parent 8585be1 commit 489def5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ install:
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- go vet ./...
- go test -v -race ./...
- diff -u <(echo -n) <(markdownfmt -d README.md)
2 changes: 1 addition & 1 deletion markdown/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func Test(t *testing.T) {
}
name := strings.TrimSuffix(fi.Name(), ".in.md")
t.Run(name, func(t *testing.T) {
got, err := markdown.Process(filepath.Join("testdata", fi.Name()), nil, nil)
got, err := markdown.Process(filepath.Join("testdata", name+".in.md"), nil, nil)
if err != nil {
t.Fatal("markdown.Process:", err)
}
Expand Down
File renamed without changes.

0 comments on commit 489def5

Please sign in to comment.