From c5b86c1b1d33bb25f04294dec896896725d20e12 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 24 Jan 2020 10:52:59 +0000 Subject: [PATCH] Extra test --- tests.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests.py b/tests.py index d602f3ad..f677ffcb 100644 --- a/tests.py +++ b/tests.py @@ -1557,19 +1557,28 @@ def testActorParsing(): def testWebLinks(): print('testWebLinks') + exampleText='This post has a web links https://somesite.net\n\nAnd some other text' linkedText=addWebLinks(exampleText) assert 'somesite.net1. HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA

' + exampleText='

ABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABCABC

' resultText=removeLongWords(exampleText,40,[]) assert resultText=='

ABCABCABCABCABCABCABCABCABCABCABCABCABCA<\p>' + exampleText='

Some text.\n\nHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAH!

' + resultText=removeLongWords(exampleText,40,[]) + assert resultText=='

Some text.\n\nHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH

' + + def testAddEmoji(): print('testAddEmoji') content='Emoji :lemon: :strawberry: :banana:'