From 7f555fbe565f9371c73fca2e65a7caf1f06ad08f Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Mon, 15 Aug 2011 22:01:05 -0400 Subject: [PATCH] renaming now that I am going to be adding merge sort --- insertion_sort01.py => sorting.py | 0 test_insertion_sort01.py => test_sorting.py | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename insertion_sort01.py => sorting.py (100%) rename test_insertion_sort01.py => test_sorting.py (77%) diff --git a/insertion_sort01.py b/sorting.py similarity index 100% rename from insertion_sort01.py rename to sorting.py diff --git a/test_insertion_sort01.py b/test_sorting.py similarity index 77% rename from test_insertion_sort01.py rename to test_sorting.py index a58c225..a34694b 100644 --- a/test_insertion_sort01.py +++ b/test_sorting.py @@ -1,17 +1,17 @@ import random import unittest -import insertion_sort01 +import sorting -class Test(unittest.TestCase): +class TestInsertionSort(unittest.TestCase): def test_example(self): tmpl = [8, 2, 4, 9, 3, 6] a = tmpl[:] expected = [2, 3, 4, 6, 8, 9] - insertion_sort01.insertion_sort(a) + sorting.insertion_sort(a) self.assertEqual(expected, a) @@ -21,7 +21,7 @@ class Test(unittest.TestCase): random.shuffle(a) expected = tmpl[:] - insertion_sort01.insertion_sort(a) + sorting.insertion_sort(a) self.assertEqual(expected, a) @@ -30,7 +30,7 @@ class Test(unittest.TestCase): a = list(reversed(tmpl[:])) expected = tmpl[:] - insertion_sort01.insertion_sort(a) + sorting.insertion_sort(a) self.assertEqual(expected, a) @@ -40,7 +40,7 @@ class Test(unittest.TestCase): random.shuffle(a) expected = tmpl[:] - insertion_sort01.insertion_sort(a) + sorting.insertion_sort(a) self.assertEqual(expected, a)