mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-06 17:44:09 +01:00
Oops, forgot to re-enabled non-testOrd tests when I committed.
This commit is contained in:
parent
384393d386
commit
f9928ba41f
@ -37,47 +37,47 @@ import utils
|
|||||||
|
|
||||||
class FunCommandsTest(PluginTestCase):
|
class FunCommandsTest(PluginTestCase):
|
||||||
plugins = ('FunCommands',)
|
plugins = ('FunCommands',)
|
||||||
## def testNoErrors(self):
|
def testNoErrors(self):
|
||||||
## self.assertNotError('netstats')
|
self.assertNotError('netstats')
|
||||||
## self.assertNotError('cpustats')
|
self.assertNotError('cpustats')
|
||||||
## self.assertNotError('uptime')
|
self.assertNotError('uptime')
|
||||||
## self.assertNotError('leet foobar')
|
self.assertNotError('leet foobar')
|
||||||
## self.assertNotError('lithp meghan sweeney')
|
self.assertNotError('lithp meghan sweeney')
|
||||||
## self.assertNotError('objects')
|
self.assertNotError('objects')
|
||||||
## self.assertNotError('levenshtein Python Perl')
|
self.assertNotError('levenshtein Python Perl')
|
||||||
## self.assertNotError('soundex jemfinch')
|
self.assertNotError('soundex jemfinch')
|
||||||
|
|
||||||
## def testBinary(self):
|
def testBinary(self):
|
||||||
## self.assertResponse('binary A', '01000001')
|
self.assertResponse('binary A', '01000001')
|
||||||
|
|
||||||
## def testRot13(self):
|
def testRot13(self):
|
||||||
## for s in nicks[:10]: # 10 is probably enough.
|
for s in nicks[:10]: # 10 is probably enough.
|
||||||
## self.assertResponse('rot13 [rot13 %s]' % s, s)
|
self.assertResponse('rot13 [rot13 %s]' % s, s)
|
||||||
|
|
||||||
## def testCalc(self):
|
def testCalc(self):
|
||||||
## self.assertResponse('calc 5*0.06', str(5*0.06))
|
self.assertResponse('calc 5*0.06', str(5*0.06))
|
||||||
|
|
||||||
## def testChr(self):
|
def testChr(self):
|
||||||
## for i in range(256):
|
for i in range(256):
|
||||||
## c = chr(i)
|
c = chr(i)
|
||||||
## regexp = r'%s|%s' % (re.escape(c), re.escape(repr(c)))
|
regexp = r'%s|%s' % (re.escape(c), re.escape(repr(c)))
|
||||||
## self.assertRegexp('chr %s' % i, regexp)
|
self.assertRegexp('chr %s' % i, regexp)
|
||||||
|
|
||||||
## def testHexlifyUnhexlify(self):
|
def testHexlifyUnhexlify(self):
|
||||||
## for s in nicks[:10]: # 10, again, is probably enough.
|
for s in nicks[:10]: # 10, again, is probably enough.
|
||||||
## self.assertResponse('unhexlify [hexlify %s]' % s, s)
|
self.assertResponse('unhexlify [hexlify %s]' % s, s)
|
||||||
|
|
||||||
## def testXor(self):
|
def testXor(self):
|
||||||
## for s0, s1, s2, s3, s4, s5, s6, s7, s8, s9 in group(nicks, 10):
|
for s0, s1, s2, s3, s4, s5, s6, s7, s8, s9 in group(nicks, 10):
|
||||||
## data = '%s%s%s%s%s%s%s%s%s' % (s0, s1, s2, s3, s4, s5, s6, s7, s8)
|
data = '%s%s%s%s%s%s%s%s%s' % (s0, s1, s2, s3, s4, s5, s6, s7, s8)
|
||||||
## self.assertResponse('xor %s [xor %s %s]' % (s9, s9, data), data)
|
self.assertResponse('xor %s [xor %s %s]' % (s9, s9, data), data)
|
||||||
|
|
||||||
## def testUrlquoteUrlunquote(self):
|
def testUrlquoteUrlunquote(self):
|
||||||
## self.assertResponse('urlunquote [urlquote ~jfincher]', '~jfincher')
|
self.assertResponse('urlunquote [urlquote ~jfincher]', '~jfincher')
|
||||||
|
|
||||||
## def testPydoc(self):
|
def testPydoc(self):
|
||||||
## self.assertNotError('pydoc str')
|
self.assertNotError('pydoc str')
|
||||||
## self.assertError('pydoc foobar')
|
self.assertError('pydoc foobar')
|
||||||
|
|
||||||
def testOrd(self):
|
def testOrd(self):
|
||||||
for c in map(chr, range(256)):
|
for c in map(chr, range(256)):
|
||||||
|
Loading…
Reference in New Issue
Block a user