Пример #1
0
 def test_right_brakets_string_with_nested_brakets(self):
     assert parentheses.check_parentheses(
         '{}[{({()})}]') == self.true_message
Пример #2
0
 def test_empty_string(self):
     assert parentheses.check_parentheses('') == self.true_message
Пример #3
0
 def test_misplaced_brakets_string_with_intersection(self):
     assert parentheses.check_parentheses('(([)])') == self.error_message
Пример #4
0
 def test_misplaced_brakets_string_with_trailing_brakets_first(self):
     assert parentheses.check_parentheses('([]][)') == self.error_message
Пример #5
0
 def test_different_numbers_of_opening_and_closing_brakets(self):
     assert parentheses.check_parentheses('(()[]') == self.error_message