Example #1
0
 def test_case_1(self):
     self.assertEqual(balancedBrackets("()[]{}{"), False)
Example #2
0
 def test_case_2(self):
     self.assertEqual(
         balancedBrackets("(((((({{{{{[[[[[([)])]]]]]}}}}}))))))"), False)
Example #3
0
 def test_case_13(self):
     self.assertEqual(balancedBrackets("[((([])([]){}){}){}([])[]((())"),
                      False)
Example #4
0
 def test_case_14(self):
     self.assertEqual(balancedBrackets(")[]}"), False)
Example #5
0
 def test_case_11(self):
     self.assertEqual(
         balancedBrackets(
             "(((((([[[[[[{{{{{{{{{{{{()}}}}}}}}}}}}]]]]]]))))))((([])({})[])[])[]([]){}(())"
         ), True)
Example #6
0
 def test_case_12(self):
     self.assertEqual(balancedBrackets("{[[[[({(}))]]]]}"), False)
Example #7
0
 def test_case_9(self):
     self.assertEqual(balancedBrackets("((({})()))"), True)
Example #8
0
 def test_case_10(self):
     self.assertEqual(balancedBrackets("(([]()()){})"), True)
Example #9
0
 def test_case_8(self):
     self.assertEqual(balancedBrackets("([])(){}(())()()"), True)
Example #10
0
 def test_case_7(self):
     self.assertEqual(balancedBrackets("((){{{{[]}}}})"), True)
Example #11
0
 def test_case_6(self):
     self.assertEqual(balancedBrackets("()([])"), True)
Example #12
0
 def test_case_5(self):
     self.assertEqual(balancedBrackets("{}()"), True)
Example #13
0
 def test_case_3(self):
     self.assertEqual(balancedBrackets("()()[{()})]"), False)