mirror of https://github.com/Mikaela/Limnoria.git
Added some tests to catch an re m// bug
This commit is contained in:
parent
2221acebde
commit
e69d8a1f63
|
@ -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/g user user', 'luser luser')
|
||||||
self.assertResponse('re s/user/luser/ user user', 'luser user')
|
self.assertResponse('re s/user/luser/ user user', 'luser user')
|
||||||
self.assertNotRegexp('re m/foo/ bar', 'has no attribute')
|
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:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue