fix some failing tests

This commit is contained in:
j 2012-09-09 19:28:11 +02:00
commit 8ba74a1e4b
10 changed files with 45 additions and 40 deletions

View file

@ -18,7 +18,7 @@ def toAZ(num):
'FOO'
>>> toAZ(1234567890)
'CYWOQVK'
'CYWOQVJ'
"""
if num < 1: raise ValueError, "must supply a positive integer"
digits = string.letters[26:]
@ -74,7 +74,7 @@ def to26(q):
def from26(q):
"""
Converts an base 26 string to an integer
>>> from32('A')
>>> from26('A')
0
"""
base26 = string.letters[26:]