Example #1
0
 def testSSortFloatList(self):
     self.assertEqual(hw.ssort([3.5, 3.0, 3.75]), [3.0, 3.5, 3.75])
Example #2
0
 def testSSortAlreadySorted(self):
     self.assertEqual(hw.ssort([0, 1, 2, 3]), [0, 1, 2, 3])
Example #3
0
 def testSSortIntList(self):
     self.assertEqual(hw.ssort([3, 1, 7, 0, 2]), [0, 1, 2, 3, 7])
Example #4
0
 def testSSortEmptyList(self):
     self.assertEqual(hw.ssort([]), [])
Example #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]) 
 def testSSortEmptyList(self):
     self.assertEqual(hw.ssort([]), [])