Skip to content
Permalink
Browse files

add ".in" to escapeurl suffix, use "go vet"

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 489def5d961241e894c6ca6faa41ba3b5aca7554
Showing with 2 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +1 −1 markdown/main_test.go
  3. 0 markdown/testdata/{escapeurl.md → escapeurl.in.md}
@@ -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)
@@ -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)
}

0 comments on commit 489def5

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.