mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Finally removed all the known bugs.
This commit is contained in:
parent
e05a0d18c9
commit
6560f9e7ae
@ -141,7 +141,7 @@ class Gameknot(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
# Game is over.
|
# Game is over.
|
||||||
m = self._gkWon.search(s)
|
m = self._gkWon.search(s)
|
||||||
winner = m.group(1)
|
winner = m.group(1)
|
||||||
m = self._gkReason.match(s)
|
m = self._gkReason.search(s)
|
||||||
if m:
|
if m:
|
||||||
reason = m.group(1)
|
reason = m.group(1)
|
||||||
else:
|
else:
|
||||||
|
@ -48,6 +48,8 @@ class GameknotTestCase(PluginTestCase):
|
|||||||
def testSnarfer(self):
|
def testSnarfer(self):
|
||||||
self.assertRegexp('http://gameknot.com/chess.pl?bd=907498',
|
self.assertRegexp('http://gameknot.com/chess.pl?bd=907498',
|
||||||
'\x02ddipaolo\x02 won')
|
'\x02ddipaolo\x02 won')
|
||||||
|
self.assertRegexp('http://gameknot.com/chess.pl?bd=907498',
|
||||||
|
'\x02chroniqueur\x02 resigned')
|
||||||
self.assertRegexp('http://gameknot.com/chess.pl?bd=955432',
|
self.assertRegexp('http://gameknot.com/chess.pl?bd=955432',
|
||||||
'\x02ddipaolo\x02 lost')
|
'\x02ddipaolo\x02 lost')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user