Skip to content
Browse files

markdown: refactor tests to use input/golden files (#45)

Refactor the test cases into input/golden files to make it easier
to view and modify them.

New test cases can now be defined by adding a pair of files inside
the testdata directory: an input file (* and a corresponding
golden file (*

Add an -update flag that writes current output to * files.
  • Loading branch information...
dmitshur committed Mar 11, 2019
2 parents 5ba28a0 + 489def5 commit 0ad31590579d83cbcaa797c00ab78c68d3c6b1cb
@@ -12,6 +12,6 @@ install:
- 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
Oops, something went wrong.

0 comments on commit 0ad3159

Please sign in to comment.
You can’t perform that action at this time.