Added some tests to catch an re m// bug

This commit is contained in:
James Vega 2003-10-17 21:24:34 +00:00
parent 2221acebde
commit e69d8a1f63
1 changed files with 4 additions and 1 deletions

View File

@ -70,6 +70,9 @@ class UtilitiesTestCase(PluginTestCase, PluginDocumentation):
self.assertResponse('re s/user/luser/g user user', 'luser luser')
self.assertResponse('re s/user/luser/ user user', 'luser user')
self.assertNotRegexp('re m/foo/ bar', 'has no attribute')
# tests to make jemfinch fix the code
self.assertResponse('re m/a\S+y/ "the bot angryman is hairy"','angry')
self.assertResponse('re m/a\S+y/g "the bot angryman is hairy"',
'angry airy')
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: