diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-20 18:24:09 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-12-20 18:24:09 +0100 |
| commit | 73c4a664b03f8afa8edb527fb6a8cc310bdb3380 (patch) | |
| tree | 9ba2d2af2149024ea0dc05a88dfcecb351c90139 /markdown/ast_list_test.go | |
| parent | 90246ee314cfbb6b6f0b43b51e392b6b5293b867 (diff) | |
test(markdown): use subtest to clean
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", ""))) + }) } |
