Add tests for preserving formatting in code blocks
@@ -12,3 +12,16 @@ import wee_slack
])
def test_does_not_format(text):
assert wee_slack.render_formatting(text) == text
+
+
+@pytest.mark.parametrize("text", [
+ "`hello *bar*`",
+ "`*`",
+ "`* *`",
+ "`* * *`",
+ "`* * * *`",
+ "`* * * * *`",
+ "`* * * * * *`",
+])
+def test_preserves_format_chars_in_code(text):
+ assert wee_slack.render_formatting(text) == text
