From 9975af94f4914cc4e1e4a6c7ea5ceff9cbe3def3 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 10 Dec 2015 19:48:38 +0100 Subject: [PATCH] Removed testing code --- sorting_algorithms.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/sorting_algorithms.py b/sorting_algorithms.py index 54e1595..f7ea7db 100644 --- a/sorting_algorithms.py +++ b/sorting_algorithms.py @@ -211,8 +211,5 @@ def main(): for cls, r in sorted(result.items(),key=lambda e: e[1][0]+e[1][1]): print("%-12s: %10d, %10d compares, %10d swaps" % (cls.__name__, r[0]+r[1], r[0],r[1])) -def test(): - print(HeapSort().sort([randint(0,500) for i in range(0,100)])) - if __name__ == '__main__': main()