Exemplo n.º 1
0
 def test_empty_array(self):
     array = []
     result = find_triples(array)
     expected = 0
     self.assertEqual(expected, result)
Exemplo n.º 2
0
 def test_another(self):
     array = [3, 4, 6, 10, 56]
     result = find_triples(array)
     expected = 0
     self.assertEqual(expected, result)
Exemplo n.º 3
0
 def test_another_3(self):
     array = [4, 3, 5, 144, 17]
     result = find_triples(array)
     expected = 1
     self.assertEqual(expected, result)
Exemplo n.º 4
0
 def test_example(self):
     array = [23, 247, 19, 96, 264, 265, 132, 181]
     result = find_triples(array)
     expected = 2
     self.assertEqual(expected, result)