From a9a3a8321d82f79c7dd5d11369ca5f967f16ae1e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 30 Sep 2020 23:22:42 +0100 Subject: [PATCH] Extra test case --- tests.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests.py b/tests.py index fa0de616..3d041a2f 100644 --- a/tests.py +++ b/tests.py @@ -2139,6 +2139,25 @@ def testReplaceEmailQuote(): print('Expect: ' + expectedStr) assert resultStr == expectedStr + testStr = "

" + \ + "@somenick" + \ + "

> Text1.
>
" + \ + "> Text2
>
> Text3
" + \ + ">
> Text4
>
> " + \ + "Text5
>
> Text6

Text7

" + expectedStr = "

" + \ + "@somenick" + \ + "

Text1.

" + \ + "Text2

Text3


Text4
" + \ + "
Text5

Text6

Text7

" + resultStr = htmlReplaceEmailQuote(testStr) + if resultStr != expectedStr: + print('Result: ' + resultStr) + print('Expect: ' + expectedStr) + assert resultStr == expectedStr + def runAllTests(): print('Running tests...')