diff --git a/config.json b/config.json index 5f98df954e..83a53cacc6 100644 --- a/config.json +++ b/config.json @@ -625,7 +625,7 @@ ] }, { - "slug": "bracket-push", + "slug": "matching-brackets", "uuid": "26f6e297-7980-4472-8ce7-157b62b0ff40", "core": false, "unlocked_by": "raindrops", diff --git a/exercises/bracket-push/.meta/generator/bracket_push_case.rb b/exercises/matching-brackets/.meta/generator/matching_brackets_case.rb similarity index 90% rename from exercises/bracket-push/.meta/generator/bracket_push_case.rb rename to exercises/matching-brackets/.meta/generator/matching_brackets_case.rb index 0f18ac6e69..4e27b250db 100644 --- a/exercises/bracket-push/.meta/generator/bracket_push_case.rb +++ b/exercises/matching-brackets/.meta/generator/matching_brackets_case.rb @@ -1,6 +1,6 @@ require 'generator/exercise_case' -class BracketPushCase < Generator::ExerciseCase +class MatchingBracketsCase < Generator::ExerciseCase def workload long_input? ? split_test : simple_test diff --git a/exercises/bracket-push/.meta/solutions/bracket_push.rb b/exercises/matching-brackets/.meta/solutions/matching_brackets.rb similarity index 100% rename from exercises/bracket-push/.meta/solutions/bracket_push.rb rename to exercises/matching-brackets/.meta/solutions/matching_brackets.rb diff --git a/exercises/bracket-push/README.md b/exercises/matching-brackets/README.md similarity index 89% rename from exercises/bracket-push/README.md rename to exercises/matching-brackets/README.md index a3affb4407..624d690564 100644 --- a/exercises/bracket-push/README.md +++ b/exercises/matching-brackets/README.md @@ -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 @@ -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 diff --git a/exercises/bracket-push/bracket_push_test.rb b/exercises/matching-brackets/matching_brackets_test.rb similarity index 95% rename from exercises/bracket-push/bracket_push_test.rb rename to exercises/matching-brackets/matching_brackets_test.rb index 9e89d1a614..cae00c0344 100644 --- a/exercises/bracket-push/bracket_push_test.rb +++ b/exercises/matching-brackets/matching_brackets_test.rb @@ -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?('[]')