From cad6cbae47550eb3bce25fc185b141f54c1cc9a0 Mon Sep 17 00:00:00 2001 From: Derk-Jan Karrenbeld Date: Mon, 15 Apr 2019 12:27:04 +0200 Subject: [PATCH] bracket-push: rename to matching-brackets 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 --- config.json | 2 +- .../.meta/generator/matching_brackets_case.rb} | 2 +- .../.meta/solutions/matching_brackets.rb} | 0 exercises/{bracket-push => matching-brackets}/README.md | 6 +++--- .../matching_brackets_test.rb} | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) rename exercises/{bracket-push/.meta/generator/bracket_push_case.rb => matching-brackets/.meta/generator/matching_brackets_case.rb} (90%) rename exercises/{bracket-push/.meta/solutions/bracket_push.rb => matching-brackets/.meta/solutions/matching_brackets.rb} (100%) rename exercises/{bracket-push => matching-brackets}/README.md (89%) rename exercises/{bracket-push/bracket_push_test.rb => matching-brackets/matching_brackets_test.rb} (95%) 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?('[]')