mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-06 17:38:02 +00:00
Changed xrange to range to be compatible with Python 3.
This commit is contained in:
@@ -22,10 +22,10 @@ class TestHanoi(object):
|
||||
assert_equal(dest.pop(), 5)
|
||||
|
||||
print('Test: 2 or more disks')
|
||||
for i in xrange(num_disks, -1, -1):
|
||||
for i in range(num_disks, -1, -1):
|
||||
src.push(i)
|
||||
hanoi(num_disks, src, dest, buff)
|
||||
for i in xrange(0, num_disks):
|
||||
for i in range(0, num_disks):
|
||||
assert_equal(dest.pop(), i)
|
||||
|
||||
print('Success: test_hanoi')
|
||||
|
||||
Reference in New Issue
Block a user