aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_paragraph_test.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:14:02 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-01 09:14:02 +0200
commitce5cf951ac6228f96f6f51e3c9e4d8af24702b55 (patch)
tree77158890fb5cece21a30515821a6f066ce370377 /mardown/ast_paragraph_test.go
parent9e5734cf76585705e259ae6c3585980ce8b994c1 (diff)
test(markdown): split in multiple files
Diffstat (limited to 'mardown/ast_paragraph_test.go')
-rw-r--r--mardown/ast_paragraph_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/mardown/ast_paragraph_test.go b/mardown/ast_paragraph_test.go
new file mode 100644
index 0000000..8daba99
--- /dev/null
+++ b/mardown/ast_paragraph_test.go
@@ -0,0 +1,20 @@
+package mardown
+
+import "testing"
+
+func TestParagraph(t *testing.T) {
+ content := "bonsoir"
+ lxs := lex(content)
+ tree, err := ast(lxs)
+ if err != nil {
+ t.Fatal(err)
+ }
+ c, err := tree.Eval()
+ if err != nil {
+ t.Fatal(err)
+ }
+ if c != "<p>bonsoir</p>" {
+ t.Errorf("failed, got %s", c)
+ t.Logf("lxs: %s\ntree: %s", lxs, tree)
+ }
+}