diff --git a/exercises/practice/resistor-color-duo/.meta/config.json b/exercises/practice/resistor-color-duo/.meta/config.json index 0562a8f4c1..13aa13a47c 100644 --- a/exercises/practice/resistor-color-duo/.meta/config.json +++ b/exercises/practice/resistor-color-duo/.meta/config.json @@ -5,6 +5,7 @@ "contributors": [ "ankorGH", "clockelliptic", + "jagdish-15", "SleeplessByte" ], "files": { diff --git a/exercises/practice/resistor-color-duo/.meta/tests.toml b/exercises/practice/resistor-color-duo/.meta/tests.toml index 862b57708d..9036fc787d 100644 --- a/exercises/practice/resistor-color-duo/.meta/tests.toml +++ b/exercises/practice/resistor-color-duo/.meta/tests.toml @@ -1,6 +1,13 @@ -# This is an auto-generated file. Regular comments will be removed when this -# file is regenerated. Regenerating will not touch any manually added keys, -# so comments can be added in a "comment" key. +# This is an auto-generated file. +# +# Regenerating this file via `configlet sync` will: +# - Recreate every `description` key/value pair +# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications +# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion) +# - Preserve any other key/value pair +# +# As user-added comments (using the # character) will be removed when this file +# is regenerated, comments can be added via a `comment` key. [ce11995a-5b93-4950-a5e9-93423693b2fc] description = "Brown and black" @@ -11,8 +18,14 @@ description = "Blue and grey" [f1886361-fdfd-4693-acf8-46726fe24e0c] description = "Yellow and violet" +[b7a6cbd2-ae3c-470a-93eb-56670b305640] +description = "White and red" + [77a8293d-2a83-4016-b1af-991acc12b9fe] description = "Orange and orange" [0c4fb44f-db7c-4d03-afa8-054350f156a8] description = "Ignore additional colors" + +[4a8ceec5-0ab4-4904-88a4-daf953a5e818] +description = "Black and brown, one-digit" diff --git a/exercises/practice/resistor-color-duo/resistor-color-duo.spec.js b/exercises/practice/resistor-color-duo/resistor-color-duo.spec.js index b222f4da82..9d3326e016 100644 --- a/exercises/practice/resistor-color-duo/resistor-color-duo.spec.js +++ b/exercises/practice/resistor-color-duo/resistor-color-duo.spec.js @@ -14,6 +14,10 @@ describe('Resistor Colors', () => { expect(decodedValue(['yellow', 'violet'])).toEqual(47); }); + xtest('White and red', () => { + expect(decodedValue(['white', 'red'])).toEqual(92); + }); + xtest('Orange and orange', () => { expect(decodedValue(['orange', 'orange'])).toEqual(33); }); @@ -21,4 +25,8 @@ describe('Resistor Colors', () => { xtest('Ignore additional colors', () => { expect(decodedValue(['green', 'brown', 'orange'])).toEqual(51); }); + + xtest('Black and brown, one-digit', () => { + expect(decodedValue(['black', 'brown'])).toEqual(1); + }); });