Exemplo n.º 1
0
 def test_get_pivot_11(self):
     test_input = 11
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(6, test_ans)
Exemplo n.º 2
0
 def test_get_pivot_3(self):
     test_input = 3
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(3, test_ans)
Exemplo n.º 3
0
 def test_get_pivot_5(self):
     test_input = 5
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(0, test_ans)
Exemplo n.º 4
0
 def test_get_pivot_negative(self):
     test_input = 1
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(-4, test_ans)
Exemplo n.º 5
0
 def test_get_pivot_11(self):
     test_input = 11
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(6, test_ans)
Exemplo n.º 6
0
 def test_get_pivot_5(self):
     test_input = 5
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(0, test_ans)
Exemplo n.º 7
0
 def test_get_pivot_3(self):
     test_input = 3
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(3, test_ans)
Exemplo n.º 8
0
 def test_get_pivot_negative(self):
     test_input = 1
     test_ans = get_pivot(test_input)
     self.assertIsNotNone(test_ans)
     self.assertEqual(-4, test_ans)