Skip to content

Commit 121baa5

Browse files
authored
Sync tests for practice exercise roman numerals (#2610)
1 parent a815aa7 commit 121baa5

File tree

2 files changed

+98
-22
lines changed

2 files changed

+98
-22
lines changed
Lines changed: 50 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,88 @@
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
[19828a3a-fbf7-4661-8ddd-cbaeee0e2178]
6-
description = "1 is a single I"
13+
description = "1 is I"
714

815
[f088f064-2d35-4476-9a41-f576da3f7b03]
9-
description = "2 is two I's"
16+
description = "2 is II"
1017

1118
[b374a79c-3bea-43e6-8db8-1286f79c7106]
12-
description = "3 is three I's"
19+
description = "3 is III"
1320

1421
[05a0a1d4-a140-4db1-82e8-fcc21fdb49bb]
15-
description = "4, being 5 - 1, is IV"
22+
description = "4 is IV"
1623

1724
[57c0f9ad-5024-46ab-975d-de18c430b290]
18-
description = "5 is a single V"
25+
description = "5 is V"
1926

2027
[20a2b47f-e57f-4797-a541-0b3825d7f249]
21-
description = "6, being 5 + 1, is VI"
28+
description = "6 is VI"
2229

2330
[ff3fb08c-4917-4aab-9f4e-d663491d083d]
24-
description = "9, being 10 - 1, is IX"
31+
description = "9 is IX"
32+
33+
[6d1d82d5-bf3e-48af-9139-87d7165ed509]
34+
description = "16 is XVI"
2535

2636
[2bda64ca-7d28-4c56-b08d-16ce65716cf6]
27-
description = "20 is two X's"
37+
description = "27 is XXVII"
2838

2939
[a1f812ef-84da-4e02-b4f0-89c907d0962c]
30-
description = "48 is not 50 - 2 but rather 40 + 8"
40+
description = "48 is XLVIII"
3141

3242
[607ead62-23d6-4c11-a396-ef821e2e5f75]
33-
description = "49 is not 40 + 5 + 4 but rather 50 - 10 + 10 - 1"
43+
description = "49 is XLIX"
3444

3545
[d5b283d4-455d-4e68-aacf-add6c4b51915]
36-
description = "50 is a single L"
46+
description = "59 is LIX"
47+
48+
[4465ffd5-34dc-44f3-ada5-56f5007b6dad]
49+
description = "66 is LXVI"
3750

3851
[46b46e5b-24da-4180-bfe2-2ef30b39d0d0]
39-
description = "90, being 100 - 10, is XC"
52+
description = "93 is XCIII"
4053

4154
[30494be1-9afb-4f84-9d71-db9df18b55e3]
42-
description = "100 is a single C"
55+
description = "141 is CXLI"
4356

4457
[267f0207-3c55-459a-b81d-67cec7a46ed9]
45-
description = "60, being 50 + 10, is LX"
58+
description = "163 is CLXIII"
59+
60+
[902ad132-0b4d-40e3-8597-ba5ed611dd8d]
61+
description = "166 is CLXVI"
4662

4763
[cdb06885-4485-4d71-8bfb-c9d0f496b404]
48-
description = "400, being 500 - 100, is CD"
64+
description = "402 is CDII"
4965

5066
[6b71841d-13b2-46b4-ba97-dec28133ea80]
51-
description = "500 is a single D"
67+
description = "575 is DLXXV"
68+
69+
[dacb84b9-ea1c-4a61-acbb-ce6b36674906]
70+
description = "666 is DCLXVI"
5271

5372
[432de891-7fd6-4748-a7f6-156082eeca2f]
54-
description = "900, being 1000 - 100, is CM"
73+
description = "911 is CMXI"
5574

5675
[e6de6d24-f668-41c0-88d7-889c0254d173]
57-
description = "1000 is a single M"
76+
description = "1024 is MXXIV"
77+
78+
[efbe1d6a-9f98-4eb5-82bc-72753e3ac328]
79+
description = "1666 is MDCLXVI"
5880

5981
[bb550038-d4eb-4be2-a9ce-f21961ac3bc6]
60-
description = "3000 is three M's"
82+
description = "3000 is MMM"
83+
84+
[3bc4b41c-c2e6-49d9-9142-420691504336]
85+
description = "3001 is MMMI"
86+
87+
[4e18e96b-5fbb-43df-a91b-9cb511fe0856]
88+
description = "3999 is MMMCMXCIX"

exercises/practice/roman-numerals/src/test/java/RomanNumeralsTest.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ public void test9ToRomanNumberIX() {
5555
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("IX");
5656
}
5757

58+
@Ignore("Remove to run test")
59+
@Test
60+
public void test16ToRomanNumberXVI() {
61+
romanNumerals = new RomanNumerals(16);
62+
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("XVI");
63+
}
64+
5865
@Ignore("Remove to run test")
5966
@Test
6067
public void test27ToRomanNumberXXVII() {
@@ -83,6 +90,13 @@ public void test59ToRomanNumberLIX() {
8390
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("LIX");
8491
}
8592

93+
@Ignore("Remove to run test")
94+
@Test
95+
public void test66ToRomanNumberLXVI() {
96+
romanNumerals = new RomanNumerals(66);
97+
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("LXVI");
98+
}
99+
86100
@Ignore("Remove to run test")
87101
@Test
88102
public void test93ToRomanNumberXCIII() {
@@ -104,6 +118,13 @@ public void test163ToRomanNumberCLXIII() {
104118
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("CLXIII");
105119
}
106120

121+
@Ignore("Remove to run test")
122+
@Test
123+
public void test166ToRomanNumberCLXVI() {
124+
romanNumerals = new RomanNumerals(166);
125+
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("CLXVI");
126+
}
127+
107128
@Ignore("Remove to run test")
108129
@Test
109130
public void test402ToRomanNumberCDII() {
@@ -118,6 +139,13 @@ public void test575ToRomanNumberDLXXV() {
118139
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("DLXXV");
119140
}
120141

142+
@Ignore("Remove to run test")
143+
@Test
144+
public void test666ToRomanNumberDCLXVI() {
145+
romanNumerals = new RomanNumerals(666);
146+
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("DCLXVI");
147+
}
148+
121149
@Ignore("Remove to run test")
122150
@Test
123151
public void test911ToRomanNumberCMXI() {
@@ -132,11 +160,31 @@ public void test1024ToRomanNumberMXXIV() {
132160
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("MXXIV");
133161
}
134162

163+
@Ignore("Remove to run test")
164+
@Test
165+
public void test1666ToRomanNumberMDCLXVI() {
166+
romanNumerals = new RomanNumerals(1666);
167+
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("MDCLXVI");
168+
}
169+
135170
@Ignore("Remove to run test")
136171
@Test
137172
public void test3000ToRomanNumberMMM() {
138173
romanNumerals = new RomanNumerals(3000);
139174
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("MMM");
140175
}
141176

177+
@Ignore("Remove to run test")
178+
@Test
179+
public void test3001ToRomanNumberMMMI() {
180+
romanNumerals = new RomanNumerals(3001);
181+
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("MMMI");
182+
}
183+
184+
@Ignore("Remove to run test")
185+
@Test
186+
public void test3999ToRomanNumberMMMCMXCIX() {
187+
romanNumerals = new RomanNumerals(3999);
188+
assertThat(romanNumerals.getRomanNumeral()).isEqualTo("MMMCMXCIX");
189+
}
142190
}

0 commit comments

Comments
 (0)