Menu

[dc0a3d]: / tests / format.py  Maximize  Restore  History

Download this file

18 lines (14 with data), 935 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
import joefx
class FormatTests(joefx.JoeTestBase):
def test_wordwrap_with_asterisks(self):
"""Regression test for #265: Version 3.7 treats "-" and "*" as quote characters"""
self.maxDiff = None # Show whole string on failure
self.config.globalopts.wordwrap = True
self.config.globalopts.autoindent = False
self.config.globalopts.pastehack = False
self.startJoe()
self.write("*all* work and no play makes jack a dull boy. all work and no play makes jack a dull boy. all work and no play makes jack a dull boy. all work and no play makes jack a dull boy.")
self.save("testout")
self.cmd("abort")
self.assertExited()
self.assertFileContents("testout", "*all* work and no play makes jack a dull boy. all work and no play makes\njack a dull boy. all work and no play makes jack a dull boy. all work and no\nplay makes jack a dull boy.")
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.