Skip to content

Commit ce085c8

Browse files
mrcfpscmccandless
authored andcommitted
bracket-push: update tests to v1.3.0 (#1369)
1 parent a355f61 commit ce085c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

exercises/bracket-push/bracket_push_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from bracket_push import is_paired
44

55

6-
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.2.0
6+
# Tests adapted from `problem-specifications//canonical-data.json` @ v1.3.0
77

88
class BracketPushTests(unittest.TestCase):
99
def test_paired_square_brackets(self):
@@ -24,6 +24,9 @@ def test_wrong_closing_bracket(self):
2424
def test_paired_with_whitespace(self):
2525
self.assertEqual(is_paired("{ }"), True)
2626

27+
def test_partially_paired_brackets(self):
28+
self.assertEqual(is_paired("{[])"), False)
29+
2730
def test_simple_nested_brackets(self):
2831
self.assertEqual(is_paired("{[]}"), True)
2932

0 commit comments

Comments
 (0)