From 1bb4e08c3558a526c164a7b802fef669a95933c5 Mon Sep 17 00:00:00 2001
From: Bob Mottram '):
+ if not content.endswith('
@foo Some random text.
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
' + resultText=removeLongWords(exampleText,40,[]) + assert resultText=='@foo Some random text.
' + exampleText='This post has a web links https://somesite.net\n\nAnd some other text' linkedText=addWebLinks(exampleText) assert 'https://somesite.netABCABCABCABCABCABCABCABCABCABCABCABCABCA<\p>' - exampleText='Some text.\n\nHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAHAHAHAHAH!
' - resultText=removeLongWords(exampleText,40,[]) - assert resultText=='Some text.\n\nHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAH
' - def testAddEmoji(): print('testAddEmoji') @@ -1693,13 +1693,13 @@ def testRecentPostsCache(): def runAllTests(): print('Running tests...') + testWebLinks() testRecentPostsCache() testTheme() testSaveLoadJson() testCommentJson() testGetStatusNumber() testAddEmoji() - testWebLinks() testActorParsing() testHttpsig() testCache()