We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a355f61 commit ce085c8Copy full SHA for ce085c8
exercises/bracket-push/bracket_push_test.py
@@ -3,7 +3,7 @@
3
from bracket_push import is_paired
4
5
6
-# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0
+# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0
7
8
class BracketPushTests(unittest.TestCase):
9
def test_paired_square_brackets(self):
@@ -24,6 +24,9 @@ def test_wrong_closing_bracket(self):
24
def test_paired_with_whitespace(self):
25
self.assertEqual(is_paired("{ }"), True)
26
27
+ def test_partially_paired_brackets(self):
28
+ self.assertEqual(is_paired("{[])"), False)
29
+
30
def test_simple_nested_brackets(self):
31
self.assertEqual(is_paired("{[]}"), True)
32
0 commit comments