diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-01 09:14:02 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-10-01 09:14:02 +0200 |
| commit | ce5cf951ac6228f96f6f51e3c9e4d8af24702b55 (patch) | |
| tree | 77158890fb5cece21a30515821a6f066ce370377 /mardown/ast_modifier_test.go | |
| parent | 9e5734cf76585705e259ae6c3585980ce8b994c1 (diff) | |
test(markdown): split in multiple files
Diffstat (limited to 'mardown/ast_modifier_test.go')
| -rw-r--r-- | mardown/ast_modifier_test.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mardown/ast_modifier_test.go b/mardown/ast_modifier_test.go new file mode 100644 index 0000000..d805f22 --- /dev/null +++ b/mardown/ast_modifier_test.go @@ -0,0 +1,22 @@ +package mardown + +import "testing" + +func TestModifier(t *testing.T) { + content := ` +***bon*soir** +` + 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><b><em>bon</em>soir</b></p>" { + t.Errorf("failed, got %s", c) + t.Logf("lxs: %s\ntree: %s", lxs, tree) + } +} |
