Пример #1
0
 def test_empty_a(self):
     a = ""
     b = "111"
     self.assertEqual(solution.addBinary(a, b), b)
Пример #2
0
 def test_input_1(self):
     a = "00000"
     b = "11"
     self.assertEqual(solution.addBinary(a, b), "00011")
Пример #3
0
 def test_input_2(self):
     a = "111"
     b = "11"
     self.assertEqual(solution.addBinary(a, b), "1010")
Пример #4
0
 def test_empty_b(self):
     a = "1101010"
     b = ""
     self.assertEqual(solution.addBinary(a, b), a)