Exemplo n.º 1
0
 def testSSortFloatList(self):
     self.assertEqual(hw.ssort([3.5, 3.0, 3.75]), [3.0, 3.5, 3.75])
Exemplo n.º 2
0
 def testSSortAlreadySorted(self):
     self.assertEqual(hw.ssort([0, 1, 2, 3]), [0, 1, 2, 3])
Exemplo n.º 3
0
 def testSSortIntList(self):
     self.assertEqual(hw.ssort([3, 1, 7, 0, 2]), [0, 1, 2, 3, 7])
Exemplo n.º 4
0
 def testSSortEmptyList(self):
     self.assertEqual(hw.ssort([]), [])
Exemplo n.º 5
0
 def testSSortSingleElement(self):
     self.assertEqual(hw.ssort([0]), [0])
 def testSSortFloatList(self):
     self.assertEqual(hw.ssort([3.5,3.0,3.75]), [3.0,3.5,3.75])
 def testSSortIntList(self):
     self.assertEqual(hw.ssort([3,1,7,0,2]), [0,1,2,3,7])
 def testSSortAlreadySorted(self):
     self.assertEqual(hw.ssort([0,1,2,3]), [0,1,2,3])
 def testSSortSingleElement(self):
     self.assertEqual(hw.ssort([0]), [0]) 
Exemplo n.º 10
0
 def testSSortEmptyList(self):
     self.assertEqual(hw.ssort([]), [])