Skip to content

Commit

Permalink
Merge pull request exercism#955 from exercism/resistor-color-duo
Browse files Browse the repository at this point in the history
resistor-colors: Rename to resistor-color-duo
  • Loading branch information
pgaspar authored Apr 9, 2019
2 parents 2d426ab + 2189c0e commit 3aa390f
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"math"
]
},
{ "slug": "resistor-colors",
{ "slug": "resistor-color-duo",
"uuid": "57b0c57e-26a5-4ccf-aaf2-2fefddd918c1",
"core": false,
"unlocked_by": null,
Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ResistorColors
module ResistorColorDuo
COLORS = %w(
black
brown
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Resistor Colors
# Resistor Color Duo

If you want to build something using a Raspberry Pi, you'll probably use _resistors_. For this exercise, you need to know two things about them:

Expand Down Expand Up @@ -37,11 +37,11 @@ the test file.

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

ruby resistor_colors_test.rb
ruby resistor_color_duo_test.rb

To include color from the command line:

ruby -r minitest/pride resistor_colors_test.rb
ruby -r minitest/pride resistor_color_duo_test.rb


## Source
Expand Down
25 changes: 25 additions & 0 deletions exercises/resistor-color-duo/resistor_color_duo_test.rb
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

This file was deleted.

25 changes: 0 additions & 25 deletions exercises/resistor-colors/resistor_colors_test.rb

This file was deleted.

0 comments on commit 3aa390f

Please sign in to comment.