all repos — grayfriday @ 093273323af9011bf873707b22b7659703557904

blackfriday fork with a few changes

out-comment stderr debug output
Mathias Leppich mleppich@muhqu.de
Sun, 30 Mar 2014 22:30:38 +0200
commit

093273323af9011bf873707b22b7659703557904

parent

ec90dd0fc486d1ab6d263d794eb10b86dc1ba0b4

1 files changed, 3 insertions(+), 5 deletions(-)

jump to
M upskirtref_test.goupskirtref_test.go

@@ -14,9 +14,7 @@

package blackfriday import ( - "fmt" "io/ioutil" - "os" "path/filepath" "testing" )

@@ -52,13 +50,13 @@ continue

} expected := string(expectedBytes) - fmt.Fprintf(os.Stderr, "processing %s ...", filename) + // fmt.Fprintf(os.Stderr, "processing %s ...", filename) actual := string(runMarkdownReference(input, flag)) if actual != expected { t.Errorf("\n [%#v]\nExpected[%#v]\nActual [%#v]", basename+".text", expected, actual) } - fmt.Fprintf(os.Stderr, " ok\n") + // fmt.Fprintf(os.Stderr, " ok\n") // now test every prefix of every input to check for // bounds checking

@@ -66,7 +64,7 @@ if !testing.Short() {

start, max := 0, len(input) for end := start + 1; end <= max; end++ { candidate = input[start:end] - fmt.Fprintf(os.Stderr, " %s %d:%d/%d\n", filename, start, end, max) + // fmt.Fprintf(os.Stderr, " %s %d:%d/%d\n", filename, start, end, max) _ = runMarkdownReference(candidate, flag) } }