Пример #1
0
 def testSelectSort1(self):
     print("------------ Test file.txt ------------")
     dannon = Dannon("file.txt")
     self.assertEqual(6, dannon.selectSort())
Пример #2
0
 def testBubbleSort2(self):
     print("------------ Test file2.txt ------------")
     dannon = Dannon("file2.txt")
     self.assertEqual(210, dannon.bubbleSort())
Пример #3
0
 def testFusionSort2(self):
     print("------------ Test file2.txt ------------")
     dannon = Dannon("file2.txt")
     self.assertEqual(67, dannon.fusionSort())
Пример #4
0
 def testInsertionSort2(self):
     print("------------ Test file2.txt ------------")
     dannon = Dannon("file2.txt")
     self.assertEqual(125, dannon.insertionSort())