diff options
Diffstat (limited to 'markdown/ast_list_test.go')
| -rw-r--r-- | markdown/ast_list_test.go | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/markdown/ast_list_test.go b/markdown/ast_list_test.go index 210a83a..6ecfc25 100644 --- a/markdown/ast_list_test.go +++ b/markdown/ast_list_test.go @@ -27,18 +27,7 @@ var expected = ` ` func TestList(t *testing.T) { - lxs := lex(rw, new(Option)) - tree, err := ast(lxs) - if err != nil { - t.Fatal(err) - } - got, err := tree.Eval(nil) - if err != nil { - t.Fatal(err) - } - exp := strings.ReplaceAll(expected, "\n", "") - if string(got) != exp { - t.Errorf("invalid value, got %s", got) - t.Logf("expected %s", exp) - } + t.Run("lists", func(t *testing.T) { + t.Run("combo", test(rw, strings.ReplaceAll(expected, "\n", ""))) + }) } |
