コード例 #1
0
ファイル: test.py プロジェクト: shz117/Leetcode
 def test_empty_a(self):
     a = ""
     b = "111"
     self.assertEqual(solution.addBinary(a, b), b)
コード例 #2
0
ファイル: test.py プロジェクト: shz117/Leetcode
 def test_input_1(self):
     a = "00000"
     b = "11"
     self.assertEqual(solution.addBinary(a, b), "00011")
コード例 #3
0
ファイル: test.py プロジェクト: shz117/Leetcode
 def test_input_2(self):
     a = "111"
     b = "11"
     self.assertEqual(solution.addBinary(a, b), "1010")
コード例 #4
0
ファイル: test.py プロジェクト: shz117/Leetcode
 def test_empty_b(self):
     a = "1101010"
     b = ""
     self.assertEqual(solution.addBinary(a, b), a)