From db5bd2e6e42bed5204788f006d241b618671b94b Mon Sep 17 00:00:00 2001 From: SavagePeanut Date: Mon, 31 Jul 2023 10:31:54 -0500 Subject: non-compliant Conversations style formatting for *bold*still bold* --- tests/test_style_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_style_parser.py') diff --git a/tests/test_style_parser.py b/tests/test_style_parser.py index f78f866..671af64 100644 --- a/tests/test_style_parser.py +++ b/tests/test_style_parser.py @@ -34,8 +34,9 @@ def test_nested(): assert(format_body("`*~_code span_~*`", MATRIX_FORMATS) == "*~_code span_~*") assert(format_body("*_~`code span`~_*", MATRIX_FORMATS) == "code span") assert(format_body(">*_~`code span`~_*", MATRIX_FORMATS) == "
code span
") - assert(format_body("*bold*not bold*", MATRIX_FORMATS) == "boldnot bold*") + assert(format_body("*bold star >*< star bold*", MATRIX_FORMATS) == "bold star >*< star bold") assert(format_body("*_bold*_", MATRIX_FORMATS) == "_bold_") + assert(format_body("__underlined__", MATRIX_FORMATS) == "underlined") def test_no_changes(): assert(format_body("", MATRIX_FORMATS) == "") @@ -45,7 +46,6 @@ def test_no_changes(): assert(format_body(" > no quote", MATRIX_FORMATS) == " > no quote") assert(format_body("_not underlined", MATRIX_FORMATS) == "_not underlined") assert(format_body("|not a spoiler|", MATRIX_FORMATS) == "|not a spoiler|") - assert(format_body("__not underlined__", MATRIX_FORMATS) == "__not underlined__") assert(format_body("`no code\nblock here`", MATRIX_FORMATS) == "`no code\nblock here`") def test_assorted(): -- cgit v1.2.3