aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_list_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 19:52:38 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-02 19:52:38 +0200
commit94dceb4f7c1740de9215b36ec183f93ca4337ee7 (patch)
tree5ad184efb0b74dd3aa4da7585f88a3e3f6cb4ecc /mardown/ast_list_test.go
parent8b249c9ce8bd1c351daf80c6c9b095fb1bccafe2 (diff)
style(markdown): fix typo in package name
Diffstat (limited to 'mardown/ast_list_test.go')
-rw-r--r--mardown/ast_list_test.go44
1 files changed, 0 insertions, 44 deletions
diff --git a/mardown/ast_list_test.go b/mardown/ast_list_test.go
deleted file mode 100644
index 6736223..0000000
--- a/mardown/ast_list_test.go
+++ /dev/null
@@ -1,44 +0,0 @@
-package mardown
-
-import (
- "strings"
- "testing"
-)
-
-var rw = `
-- item A
-- item B
-* item C
-
-1. item 1
-2. item 2
-`
-
-var expected = `
-<ul>
-<li>item A</li>
-<li>item B</li>
-<li>item C</li>
-</ul>
-<ol>
-<li>item 1</li>
-<li>item 2</li>
-</ol>
-`
-
-func TestList(t *testing.T) {
- lxs := lex(rw)
- tree, err := ast(lxs)
- if err != nil {
- t.Fatal(err)
- }
- got, err := tree.Eval()
- 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)
- }
-}