Commit 70c99ef9 authored by Alexander Belopolsky's avatar Alexander Belopolsky

Fixed the test

parent 121d80f7
...@@ -66,7 +66,7 @@ class oldrange: ...@@ -66,7 +66,7 @@ class oldrange:
def test(): def test():
import time, builtins import time, builtins
#Just a quick sanity check #Just a quick sanity check
correct_result = builtins.range(5, 100, 3) correct_result = list(builtins.range(5, 100, 3))
oldrange_result = list(oldrange(5, 100, 3)) oldrange_result = list(oldrange(5, 100, 3))
genrange_result = list(genrange(5, 100, 3)) genrange_result = list(genrange(5, 100, 3))
if genrange_result != correct_result or oldrange_result != correct_result: if genrange_result != correct_result or oldrange_result != correct_result:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment