out-comment stderr debug output

This commit is contained in:
Mathias Leppich 2014-03-30 22:30:38 +02:00
parent ec90dd0fc4
commit 093273323a

View File

@ -14,9 +14,7 @@
package blackfriday package blackfriday
import ( import (
"fmt"
"io/ioutil" "io/ioutil"
"os"
"path/filepath" "path/filepath"
"testing" "testing"
) )
@ -52,13 +50,13 @@ func doTestsReference(t *testing.T, files []string, flag int) {
} }
expected := string(expectedBytes) expected := string(expectedBytes)
fmt.Fprintf(os.Stderr, "processing %s ...", filename) // fmt.Fprintf(os.Stderr, "processing %s ...", filename)
actual := string(runMarkdownReference(input, flag)) actual := string(runMarkdownReference(input, flag))
if actual != expected { if actual != expected {
t.Errorf("\n [%#v]\nExpected[%#v]\nActual [%#v]", t.Errorf("\n [%#v]\nExpected[%#v]\nActual [%#v]",
basename+".text", expected, actual) 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 // now test every prefix of every input to check for
// bounds checking // bounds checking
@ -66,7 +64,7 @@ func doTestsReference(t *testing.T, files []string, flag int) {
start, max := 0, len(input) start, max := 0, len(input)
for end := start + 1; end <= max; end++ { for end := start + 1; end <= max; end++ {
candidate = input[start: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) _ = runMarkdownReference(candidate, flag)
} }
} }