From 0b70ee70d88be3b398acb5e368fa6f44f91e9844 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 7 Aug 2020 21:51:34 +0100 Subject: [PATCH] Test for long hashtag --- tests.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests.py b/tests.py index 2f85cd218..70da4a6aa 100644 --- a/tests.py +++ b/tests.py @@ -1684,6 +1684,13 @@ def testWebLinks(): '

filepopout=' + \ 'TemplateAttachmentRichPopout' + exampleText = \ + '

Test1 test2 #YetAnotherExcessivelyLongwindedAndBoringHashtag<\p>' + resultText = removeLongWords(addWebLinks(exampleText), 40, []) + assert(resultText == + '

Test1 test2 ' + '#YetAnotherExcessivelyLongwindedAndBorin\ngHashtag

') + def testAddEmoji(): print('testAddEmoji')