Skip to content

Commit 2bbd780

Browse files
committed
Syncing test.toml and updating the test code
1 parent 1637e85 commit 2bbd780

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

exercises/practice/resistor-color-duo/.meta/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"contributors": [
66
"ankorGH",
77
"clockelliptic",
8+
"jagdish-15",
89
"SleeplessByte"
910
],
1011
"files": {
Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
# This is an auto-generated file. Regular comments will be removed when this
2-
# file is regenerated. Regenerating will not touch any manually added keys,
3-
# so comments can be added in a "comment" key.
1+
# This is an auto-generated file.
2+
#
3+
# Regenerating this file via `configlet sync` will:
4+
# - Recreate every `description` key/value pair
5+
# - Recreate every `reimplements` key/value pair, where they exist in problem-specifications
6+
# - Remove any `include = true` key/value pair (an omitted `include` key implies inclusion)
7+
# - Preserve any other key/value pair
8+
#
9+
# As user-added comments (using the # character) will be removed when this file
10+
# is regenerated, comments can be added via a `comment` key.
411

512
[ce11995a-5b93-4950-a5e9-93423693b2fc]
613
description = "Brown and black"
@@ -11,8 +18,14 @@ description = "Blue and grey"
1118
[f1886361-fdfd-4693-acf8-46726fe24e0c]
1219
description = "Yellow and violet"
1320

21+
[b7a6cbd2-ae3c-470a-93eb-56670b305640]
22+
description = "White and red"
23+
1424
[77a8293d-2a83-4016-b1af-991acc12b9fe]
1525
description = "Orange and orange"
1626

1727
[0c4fb44f-db7c-4d03-afa8-054350f156a8]
1828
description = "Ignore additional colors"
29+
30+
[4a8ceec5-0ab4-4904-88a4-daf953a5e818]
31+
description = "Black and brown, one-digit"

exercises/practice/resistor-color-duo/resistor-color-duo.spec.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,19 @@ describe('Resistor Colors', () => {
1414
expect(decodedValue(['yellow', 'violet'])).toEqual(47);
1515
});
1616

17+
xtest('White and red', () => {
18+
expect(decodedValue(['white', 'red'])).toEqual(92);
19+
});
20+
1721
xtest('Orange and orange', () => {
1822
expect(decodedValue(['orange', 'orange'])).toEqual(33);
1923
});
2024

2125
xtest('Ignore additional colors', () => {
2226
expect(decodedValue(['green', 'brown', 'orange'])).toEqual(51);
2327
});
28+
29+
xtest('Black and brown, one-digit', () => {
30+
expect(decodedValue(['black', 'brown'])).toEqual(1);
31+
});
2432
});

0 commit comments

Comments
 (0)