fix some failing tests
This commit is contained in:
parent
fcae567823
commit
8ba74a1e4b
10 changed files with 45 additions and 40 deletions
|
|
@ -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:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue