Test for long hashtag

merge-requests/30/head
Bob Mottram 2020-08-07 21:51:34 +01:00
parent 2f2034d0ec
commit 0b70ee70d8
1 changed files with 7 additions and 0 deletions

View File

@ -1684,6 +1684,13 @@ def testWebLinks():
'<p>' + \
''
exampleText = \
'<p>Test1 test2 #YetAnotherExcessivelyLongwindedAndBoringHashtag<\p>'
resultText = removeLongWords(addWebLinks(exampleText), 40, [])
assert(resultText ==
'<p>Test1 test2 '
'#YetAnotherExcessivelyLongwindedAndBorin\ngHashtag</p>')
def testAddEmoji():
print('testAddEmoji')