Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@
]
},
{
"slug": "bracket-push",
"slug": "matching-brackets",
"uuid": "26f6e297-7980-4472-8ce7-157b62b0ff40",
"core": false,
"unlocked_by": "raindrops",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'generator/exercise_case'

class BracketPushCase < Generator::ExerciseCase
class MatchingBracketsCase < Generator::ExerciseCase

def workload
long_input? ? split_test : simple_test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bracket Push
# Matching Brackets

Given a string containing brackets `[]`, braces `{}`, parentheses `()`,
or any combination thereof, verify that any and all pairs are matched
Expand All @@ -20,11 +20,11 @@ the test file.

Run the tests from the exercise directory using the following command:

ruby bracket_push_test.rb
ruby matching_brackets_test.rb

To include color from the command line:

ruby -r minitest/pride bracket_push_test.rb
ruby -r minitest/pride matching_brackets_test.rb


## Source
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require 'minitest/autorun'
require_relative 'bracket_push'
require_relative 'matching_brackets'

# Common test data version: 1.5.0 20dd164
class BracketPushTest < Minitest::Test
class MatchingBracketsTest < Minitest::Test
def test_paired_square_brackets
# skip
assert Brackets.paired?('[]')
Expand Down