Exemplo n.º 1
0
 def test_equal_1(self):
     self.assertEqual(binary_array_to_number([0, 0, 0, 1]), 1)
Exemplo n.º 2
0
 def test_equal_2(self):
     self.assertEqual(binary_array_to_number([0, 0, 1, 0]), 2)
Exemplo n.º 3
0
 def test_equal_3(self):
     self.assertEqual(binary_array_to_number([1, 1, 1, 1]), 15)