コード例 #1
0
ファイル: test.py プロジェクト: johnnywsd/leetcode_python
 def test3(self):
     input_str = '{}[]()([]{})'
     res = is_balanced(input_str)
     self.assertEqual(True, res)
コード例 #2
0
ファイル: test.py プロジェクト: johnnywsd/leetcode_python
 def test1(self):
     input_str = '{[()]}'
     res = is_balanced(input_str)
     self.assertEqual(True, res)
コード例 #3
0
ファイル: test.py プロジェクト: johnnywsd/leetcode_python
 def test2(self):
     input_str = '{[(])]}'
     res = is_balanced(input_str)
     self.assertEqual(False, res)