Added test to make sure overlong regexps don't slip through.

This commit is contained in:
Jeremy Fincher 2003-12-01 12:35:07 +00:00
parent 3aa6faa82a
commit 35df9e1cfa
1 changed files with 3 additions and 0 deletions

View File

@ -86,4 +86,7 @@ class UtilitiesTestCase(PluginTestCase, PluginDocumentation):
self.assertResponse('re s/\b(\w+)\b/\1./g foo bar baz',
'foo. bar. baz.')
def testNotOverlongRe(self):
self.assertError('re [strjoin "" s/./ [eval \'xxx\'*400]] blah blah')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: