Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e5c0721435
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (15 sloc) 0.474 kb
#!/usr/bin/env python
from helpers import *
import ircSocket
START("mangle")
mangle = ircSocket.mangle
nick = "richo"
nick = mangle(nick)
ASSERT(nick == "richo_", "Mangle should pad with underscores to 8 chars")
for i in xrange(3):
nick = mangle(nick)
ASSERT(nick == "richo_00", "Mangle should add numbers when nick length exceeded")
for i in xrange(3):
nick = mangle(nick)
ASSERT(nick == "richo_03", "Mangle should then increment those numerals")
END()
Jump to Line
Something went wrong with that request. Please try again.