From ce5cf951ac6228f96f6f51e3c9e4d8af24702b55 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Wed, 1 Oct 2025 09:14:02 +0200 Subject: test(markdown): split in multiple files --- mardown/ast_paragraph_test.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 mardown/ast_paragraph_test.go (limited to 'mardown/ast_paragraph_test.go') 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 != "

bonsoir

" { + t.Errorf("failed, got %s", c) + t.Logf("lxs: %s\ntree: %s", lxs, tree) + } +} -- cgit v1.2.3