Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bracket-push: update tests to v1.3.0 #1369

Merged
merged 1 commit into from
Apr 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion exercises/bracket-push/bracket_push_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from bracket_push import is_paired


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

class BracketPushTests(unittest.TestCase):
def test_paired_square_brackets(self):
Expand All @@ -24,6 +24,9 @@ def test_wrong_closing_bracket(self):
def test_paired_with_whitespace(self):
self.assertEqual(is_paired("{ }"), True)

def test_partially_paired_brackets(self):
self.assertEqual(is_paired("{[])"), False)

def test_simple_nested_brackets(self):
self.assertEqual(is_paired("{[]}"), True)

Expand Down