diff options
| author | SavagePeanut <sourcehut@lazytapir.com> | 2024-01-18 18:41:03 -0600 |
|---|---|---|
| committer | SavagePeanut <sourcehut@lazytapir.com> | 2024-01-18 18:41:03 -0600 |
| commit | 91987c153449ea8b8ecb55cbc5968669e35454cb (patch) | |
| tree | ef5f4856eadf54c7ed051bfeeb606caeba880133 /tests | |
| parent | 1c6446aaa5842676f187287d2f84e34c318465a1 (diff) | |
fix empty styles
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_matrix.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_matrix.py b/tests/test_matrix.py index 7dbafdc..edcfe37 100644 --- a/tests/test_matrix.py +++ b/tests/test_matrix.py @@ -48,6 +48,23 @@ def test_basic(): formatted_body = "<span data-mx-spoiler>this message contains a spoiler</span>" assert(format_for_matrix(test) == formatted_body) +def test_empty(): + test = "__ ** ~~ ``" + formatted_body = "__ ** ~~ ``" + assert(format_for_matrix(test) == formatted_body) + + test = "```\n```" + formatted_body = "```<br>```" + assert(format_for_matrix(test) == formatted_body) + + test = "```python\n```" + formatted_body = "```python<br>```" + assert(format_for_matrix(test) == formatted_body) + + test = "_____" + formatted_body = "_____" + assert(format_for_matrix(test) == formatted_body) + def test_quotes(): test = ">single" formatted_body = "<blockquote>single</blockquote>" |
