示例#1
0
 def test_2(self):
     self.assertEqual(True, is_balanced('[()]{}'))
示例#2
0
 def test_1(self):
     self.assertEqual(True, is_balanced('((()))'))
示例#3
0
 def test_4(self):
     self.assertEqual(True, is_balanced(''))
示例#4
0
 def test_5(self):
     self.assertEqual(False, is_balanced('([]}'))
示例#5
0
 def test_3(self):
     self.assertEqual(False, is_balanced('({[)]'))