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