mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +01:00
SedRegex: add a no match test case
This commit is contained in:
parent
c04b31ae32
commit
ffa24bf56e
@ -51,6 +51,15 @@ class SedRegexTestCase(ChannelPluginTestCase):
|
||||
m = self.getMsg(' ')
|
||||
self.assertIn('Abcd testefgh', str(m))
|
||||
|
||||
def testNoMatch(self):
|
||||
self.feedMsg('hello world')
|
||||
self.feedMsg('s/goodbye//')
|
||||
m = self.getMsg(' ')
|
||||
self.assertIn('Search not found', str(m))
|
||||
self.feedMsg('s/Hello/hi/') # wrong case
|
||||
m = self.getMsg(' ')
|
||||
self.assertIn('Search not found', str(m))
|
||||
|
||||
def testCaseInsensitiveReplace(self):
|
||||
self.feedMsg('Aliens Are Invading, Help!')
|
||||
self.feedMsg('s/a/e/i')
|
||||
|
Loading…
Reference in New Issue
Block a user