def test_false_15(self):
     self.assertFalse(is_balanced('Hello Mother can you hear me?-', '--'))
 def test_false_5(self):
     self.assertFalse(is_balanced(
         '(Hello Mother can you hear me?))', '()'
     ))
예제 #3
0
 def test_false_13(self):
     self.assertFalse(is_balanced('([{-Hello!-})]', '()[]{}'))
 def test_true_13(self):
     self.assertTrue(is_balanced('([{([{Hello}])}])', '()[]{}'))
 def test_true_1(self):
     self.assertTrue(is_balanced('(Sensei says yes!)', '()'))
 def test_false_23(self):
     self.assertFalse(is_balanced('-a@b@cd@efghi-', '--@@'))
 def test_true_8(self):
     self.assertTrue(is_balanced(
         '(Hello Mother can you hear me?)[Monkeys, in my pockets!!](Gosh'
         '!!)', '()[]'
     ))
예제 #8
0
 def test_false_21(self):
     self.assertFalse(is_balanced('-a@bcd@e@fghi-', '--@@'))
예제 #9
0
 def test_false_23(self):
     self.assertFalse(is_balanced('-a@b@cd@efghi-', '--@@'))
예제 #10
0
 def test_false_18(self):
     self.assertFalse(is_balanced('-abcd-efghi@', '--@@'))
예제 #11
0
 def test_false_19(self):
     self.assertFalse(is_balanced('-abcd-e@fghi', '--@@'))
예제 #12
0
 def test_true_3(self):
     self.assertTrue(is_balanced('Sensei says -yes-!', '--'))
예제 #13
0
 def test_false_16(self):
     self.assertFalse(is_balanced('abcd-e@fghi@', '--@@'))
예제 #14
0
 def test_false_15(self):
     self.assertFalse(is_balanced('Hello Mother can you hear me?-', '--'))
 def test_true_3(self):
     self.assertTrue(is_balanced('Sensei says -yes-!', '--'))
예제 #16
0
 def test_false_24(self):
     self.assertFalse(is_balanced('a@b@cd@e@fghi-', '--@@'))
 def test_false_19(self):
     self.assertFalse(is_balanced('-abcd-e@fghi', '--@@'))
예제 #18
0
 def test_false_25(self):
     self.assertFalse(is_balanced('-a@b@cd@e@fghi', '--@@'))
 def test_false_25(self):
     self.assertFalse(is_balanced('-a@b@cd@e@fghi', '--@@'))
예제 #20
0
 def test_true_6(self):
     self.assertTrue(is_balanced('(Hello Mother can you hear me?', ''))
 def test_true_11(self):
     self.assertTrue(is_balanced('((()Hello()))', '()'))
예제 #22
0
 def test_true_8(self):
     self.assertTrue(
         is_balanced(
             '(Hello Mother can you hear me?)[Monkeys, in my pockets!!](Gosh'
             '!!)', '()[]'))
 def test_true_15(self):
     self.assertTrue(is_balanced('-Hello Mother can you hear me?-', '--'))
예제 #24
0
 def test_true_10(self):
     self.assertTrue(is_balanced('(((Hello)))', '()'))
 def test_false_2(self):
     self.assertFalse(is_balanced('(Sensei [says) no!]', '()[]'))
예제 #26
0
 def test_true_11(self):
     self.assertTrue(is_balanced('((()Hello()))', '()'))
 def test_true_2(self):
     self.assertTrue(is_balanced('(Sensei [says] yes!)', '()[]'))
예제 #28
0
 def test_true_12(self):
     self.assertTrue(is_balanced('([{-Hello!-}])', '()[]{}'))
 def test_false_13(self):
     self.assertFalse(is_balanced('([{-Hello!-})]', '()[]{}'))
예제 #30
0
 def test_true_13(self):
     self.assertTrue(is_balanced('([{([{Hello}])}])', '()[]{}'))
 def test_false_16(self):
     self.assertFalse(is_balanced('abcd-e@fghi@', '--@@'))
예제 #32
0
 def test_true_14(self):
     self.assertTrue(is_balanced('-abcd-e@fghi@', '--@@'))
 def test_false_18(self):
     self.assertFalse(is_balanced('-abcd-efghi@', '--@@'))
예제 #34
0
 def test_true_15(self):
     self.assertTrue(is_balanced('-Hello Mother can you hear me?-', '--'))
 def test_false_21(self):
     self.assertFalse(is_balanced('-a@bcd@e@fghi-', '--@@'))
예제 #36
0
 def test_true_16(self):
     self.assertTrue(is_balanced('-a@b@cd@e@fghi-', '--@@'))
 def test_false_24(self):
     self.assertFalse(is_balanced('a@b@cd@e@fghi-', '--@@'))
예제 #38
0
 def test_true_1(self):
     self.assertTrue(is_balanced('(Sensei says yes!)', '()'))
 def test_true_6(self):
     self.assertTrue(is_balanced('(Hello Mother can you hear me?', ''))
예제 #40
0
 def test_false_1(self):
     self.assertFalse(is_balanced('(Sensei says no!', '()'))
 def test_true_10(self):
     self.assertTrue(is_balanced('(((Hello)))', '()'))
예제 #42
0
 def test_false_2(self):
     self.assertFalse(is_balanced('(Sensei [says) no!]', '()[]'))
 def test_true_12(self):
     self.assertTrue(is_balanced('([{-Hello!-}])', '()[]{}'))
예제 #44
0
 def test_false_3(self):
     self.assertFalse(is_balanced('Sensei -says no!', '--'))
 def test_true_14(self):
     self.assertTrue(is_balanced('-abcd-e@fghi@', '--@@'))
예제 #46
0
 def test_false_5(self):
     self.assertFalse(is_balanced('(Hello Mother can you hear me?))', '()'))
 def test_true_16(self):
     self.assertTrue(is_balanced('-a@b@cd@e@fghi-', '--@@'))
예제 #48
0
 def test_false_6(self):
     self.assertFalse(is_balanced(')Hello Mother can you hear me?', '()'))
 def test_false_1(self):
     self.assertFalse(is_balanced('(Sensei says no!', '()'))
예제 #50
0
 def test_true_2(self):
     self.assertTrue(is_balanced('(Sensei [says] yes!)', '()[]'))
 def test_false_3(self):
     self.assertFalse(is_balanced('Sensei -says no!', '--'))
예제 #52
0
 def test_false_10(self):
     self.assertFalse(
         is_balanced(
             '(Hello Mother can you hear me?)[Monkeys, in my pockets!!',
             '()[]'))
 def test_false_6(self):
     self.assertFalse(is_balanced(')Hello Mother can you hear me?', '()'))
 def test_false_12(self):
     self.assertFalse(is_balanced('(()Hello()))', '()'))
 def test_false_10(self):
     self.assertFalse(is_balanced(
         '(Hello Mother can you hear me?)[Monkeys, in my pockets!!',
         '()[]'
     ))
예제 #56
0
 def test_false_12(self):
     self.assertFalse(is_balanced('(()Hello()))', '()'))