You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
327 B
20 lines
327 B
13 years ago
|
import unittest
|
||
|
|
||
|
import insertion_sort01
|
||
|
|
||
|
|
||
|
class Test(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)
|
||
|
|
||
|
self.assertEqual(expected, a)
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
unittest.main()
|