From 91987c153449ea8b8ecb55cbc5968669e35454cb Mon Sep 17 00:00:00 2001 From: SavagePeanut Date: Thu, 18 Jan 2024 18:41:03 -0600 Subject: fix empty styles --- tests/test_matrix.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests') 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 = "this message contains a spoiler" assert(format_for_matrix(test) == formatted_body) +def test_empty(): + test = "__ ** ~~ ``" + formatted_body = "__ ** ~~ ``" + assert(format_for_matrix(test) == formatted_body) + + test = "```\n```" + formatted_body = "```
```" + assert(format_for_matrix(test) == formatted_body) + + test = "```python\n```" + formatted_body = "```python
```" + assert(format_for_matrix(test) == formatted_body) + + test = "_____" + formatted_body = "_____" + assert(format_for_matrix(test) == formatted_body) + def test_quotes(): test = ">single" formatted_body = "
single
" -- cgit v1.2.3