chore: update parser tests

This commit is contained in:
Steven
2023-12-16 11:34:55 +08:00
parent aee0e31b0a
commit 1237643028
12 changed files with 50 additions and 46 deletions

View File

@@ -14,17 +14,25 @@ func TestStringRender(t *testing.T) {
text string
expected string
}{
{
text: "",
expected: "",
},
{
text: "Hello world!",
expected: `Hello world!`,
expected: "Hello world!\n",
},
{
text: "**Hello** world!",
expected: `Hello world!`,
expected: "Hello world!\n",
},
{
text: "**[your/slash](https://example.com)** world!",
expected: `your/slash world!`,
expected: "your/slash world!\n",
},
{
text: "Test\n1. Hello\n2. World",
expected: "Test\n1. Hello\n2. World\n",
},
}