コード例 #1
0
 def result():
     return is_balanced_parentheses_string({"test": "test"})
コード例 #2
0
 def test_returns_false_for_imbalanced_string_with_wildcard(self):
     result = is_balanced_parentheses_string("***(*")
     self.assertFalse(result)
コード例 #3
0
 def test_handles_whole_string_of_wildcard_characters(self):
     result = is_balanced_parentheses_string("********")
     self.assertTrue(result)
コード例 #4
0
 def test_handles_wildcard_character(self):
     result = is_balanced_parentheses_string("(*((()*)")
     self.assertTrue(result)
コード例 #5
0
 def test_returns_false_for_imbalanced_string(self):
     result = is_balanced_parentheses_string("()(")
     self.assertFalse(result)
コード例 #6
0
 def test_returns_true_for_balanced_string(self):
     result = is_balanced_parentheses_string("()")
     self.assertTrue(result)