forked from exercism/ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request exercism#955 from exercism/resistor-color-duo
resistor-colors: Rename to resistor-color-duo
- Loading branch information
Showing
7 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
exercises/resistor-color-duo/.meta/generator/resistor_color_duo_case.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
require 'generator/exercise_case' | ||
|
||
class ResistorColorDuoCase < Generator::ExerciseCase | ||
def workload | ||
assert_equal(expected, "ResistorColorDuo.value(#{colors})") | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
...colors/.meta/solutions/resistor_colors.rb → ...duo/.meta/solutions/resistor_color_duo.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module ResistorColors | ||
module ResistorColorDuo | ||
COLORS = %w( | ||
black | ||
brown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require 'minitest/autorun' | ||
require_relative 'resistor_color_duo' | ||
|
||
# Common test data version: 2.0.0 8b44ce1 | ||
class ResistorColorDuoTest < Minitest::Test | ||
def test_brown_and_black | ||
# skip | ||
assert_equal 10, ResistorColorDuo.value(["brown", "black"]) | ||
end | ||
|
||
def test_blue_and_grey | ||
skip | ||
assert_equal 68, ResistorColorDuo.value(["blue", "grey"]) | ||
end | ||
|
||
def test_yellow_and_violet | ||
skip | ||
assert_equal 47, ResistorColorDuo.value(["yellow", "violet"]) | ||
end | ||
|
||
def test_orange_and_orange | ||
skip | ||
assert_equal 33, ResistorColorDuo.value(["orange", "orange"]) | ||
end | ||
end |
7 changes: 0 additions & 7 deletions
7
exercises/resistor-colors/.meta/generator/resistor_colors_case.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.