diff options
Diffstat (limited to 'mardown/ast_test.go')
| -rw-r--r-- | mardown/ast_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mardown/ast_test.go b/mardown/ast_test.go index 6215ced..030656b 100644 --- a/mardown/ast_test.go +++ b/mardown/ast_test.go @@ -35,7 +35,9 @@ func TestAst(t *testing.T) { if err != nil { t.Fatal(err) } - if string(res) != strings.ReplaceAll(parsed, "\n", "") { + wanted := strings.ReplaceAll(parsed, "\n", "") + if string(res) != wanted { t.Errorf("invalid string, got %s", res) + t.Logf("wanted %s", wanted) } } |
