Skip to content

Commit

Permalink
bracket-push: rename to matching-brackets
Browse files Browse the repository at this point in the history
This rename was proposed in:
exercism/problem-specifications#1501

The rationale for the name is:

* to name the exercise by its story, not by what it potentially teaches
* to avoid unnecessarily biasing the solution space
  • Loading branch information
SleeplessByte committed Apr 15, 2019
1 parent 3aa390f commit cad6cba
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
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

0 comments on commit cad6cba

Please sign in to comment.