예제 #1
0
 def test_last_pivot(self):
     self.assertEquals(pivot(self.inp, method='last'), 5)
예제 #2
0
 def test_median_pivot(self):
     self.assertEquals(pivot(self.inp, method='median'), 5)
예제 #3
0
 def test_front_pivot(self):
     self.assertEquals(pivot(self.inp, method='first'), 6)