mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Changed the name of the strlen command just to be 'len'.
This commit is contained in:
parent
afd53f212d
commit
fdbecfd1d4
@ -108,7 +108,7 @@ class String(callbacks.Plugin):
|
|||||||
irc.reply(utils.str.soundex(text, length))
|
irc.reply(utils.str.soundex(text, length))
|
||||||
soundex = wrap(soundex, ['somethingWithoutSpaces', additional('int', 4)])
|
soundex = wrap(soundex, ['somethingWithoutSpaces', additional('int', 4)])
|
||||||
|
|
||||||
def strlen(self, irc, msg, args):
|
def len(self, irc, msg, args):
|
||||||
"""<text>
|
"""<text>
|
||||||
|
|
||||||
Returns the length of <text>.
|
Returns the length of <text>.
|
||||||
|
@ -75,6 +75,9 @@ def group(seq, groupSize, noneFill=True):
|
|||||||
|
|
||||||
class StringTestCase(PluginTestCase):
|
class StringTestCase(PluginTestCase):
|
||||||
plugins = ('String', 'Format', 'Status')
|
plugins = ('String', 'Format', 'Status')
|
||||||
|
def testLen(self):
|
||||||
|
self.assertResponse('len foo', '3')
|
||||||
|
|
||||||
def testNoErrors(self):
|
def testNoErrors(self):
|
||||||
self.assertNotError('levenshtein Python Perl')
|
self.assertNotError('levenshtein Python Perl')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user