From 35df9e1cfa80f2c45cc85bdf995cf13126ae43cc Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 1 Dec 2003 12:35:07 +0000 Subject: [PATCH] Added test to make sure overlong regexps don't slip through. --- test/test_Utilities.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/test_Utilities.py b/test/test_Utilities.py index 27b15d8c2..1d539e244 100644 --- a/test/test_Utilities.py +++ b/test/test_Utilities.py @@ -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: