From e34c575835c674772d7ffd54b5434fc0ae556539 Mon Sep 17 00:00:00 2001 From: simonw Date: Tue, 28 Apr 2009 07:28:25 -0700 Subject: Now testing the hexconv convertor rather than the Python built-in hex() function --- src/shorturls/baseconv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/shorturls/baseconv.py') diff --git a/src/shorturls/baseconv.py b/src/shorturls/baseconv.py index 9012441..5796956 100644 --- a/src/shorturls/baseconv.py +++ b/src/shorturls/baseconv.py @@ -59,7 +59,6 @@ base62 = BaseConverter( if __name__ == '__main__': nums = [-10 ** 10, 10 ** 10] + range(-100, 100) - for convertor in [bin, hex, base62]: + for convertor in [bin, hexconv, base62]: for i in nums: assert i == bin.to_decimal(bin.from_decimal(i)), '%s failed' % i - -- cgit v1.2.3