def test_single_case(self):
     """Test a stack with a single value"""
     array = [-42]
     s = S.fromarray(array)
     s.sort()
     sortedarray = s.toarray()
     self.assertTrue(issorted(sortedarray))
 def test_random_case(self):
     """Test a random stack """
     array = [
         -42, 102, 49, 32, -120, 84, 23, 455, 88, -199,
         -20, -199, 42, 41, 12, 28]
     s = S.fromarray(array)
     s.sort()
     sortedarray = s.toarray()
     self.assertTrue(issorted(sortedarray))