Exemple #1
0
 def test_equals(self):
     self.assertEqual(binary_piramid(1, 4), '1111010')
Exemple #2
0
 def test_equals_3(self):
     self.assertEqual(binary_piramid(6, 20), '1110010110100011')
Exemple #3
0
 def test_equals_4(self):
     self.assertEqual(binary_piramid(21, 60), '1100000100010001010100')
Exemple #4
0
 def test_equals_2(self):
     self.assertEqual(binary_piramid(1, 6), '101001101')