diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-01 09:43:06 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-01 09:43:06 +0200 |
| commit | c49daa8fe6fdcf1c7fab08ee32f1ff994979c401 (patch) | |
| tree | 6ac743ddd35563893f92f2fcba73907657d36191 /mardown/ast_test.go | |
| parent | b07dd267fc10812f7e94bf6d9be08667537dd331 (diff) | |
fix(markdown): paragraph parse always skip one char
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) } } |
