diff --git a/.travis.yml b/.travis.yml index ab3c6a8..7e22b75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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) diff --git a/markdown/main_test.go b/markdown/main_test.go index 7a54b73..ed358cd 100644 --- a/markdown/main_test.go +++ b/markdown/main_test.go @@ -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) } diff --git a/markdown/testdata/escapeurl.md b/markdown/testdata/escapeurl.in.md similarity index 100% rename from markdown/testdata/escapeurl.md rename to markdown/testdata/escapeurl.in.md