Skip to content

Commit bdc9369

Browse files
committed
Made style changes
According to Clang's fugly ass suggestions.
1 parent fad0916 commit bdc9369

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src/test/java/com/thealgorithms/maths/RomanNumeralUtilTest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@
99
import org.junit.jupiter.params.provider.CsvSource;
1010

1111
class RomanNumeralUtilTest {
12-
@ParameterizedTest()
13-
@CsvSource({"2000,MM", "1,I", "2,II", "1003,MIII", "1004,MIV"})
14-
void minimumMaximumTest(int testInt, String word) {
15-
System.out.println(word + ": " + testInt);
16-
assertEquals(RomanNumeralUtil.generate(testInt), word);
17-
}
12+
@ParameterizedTest()
13+
@CsvSource({"2000,MM", "1,I", "2,II", "1003,MIII", "1004,MIV"})
14+
void minimumMaximumTest(int testInt, String word) {
15+
System.out.println(word + ": " + testInt);
16+
assertEquals(RomanNumeralUtil.generate(testInt), word);
17+
}
1818

19-
@Test
20-
void calcSomeNumerals() {
21-
assertThrows(IllegalArgumentException.class, () -> RomanNumeralUtil.generate(0));
22-
assertThrows(IllegalArgumentException.class, () -> RomanNumeralUtil.generate(6000));
23-
}
19+
@Test
20+
void calcSomeNumerals() {
21+
assertThrows(IllegalArgumentException.class, () -> RomanNumeralUtil.generate(0));
22+
assertThrows(IllegalArgumentException.class, () -> RomanNumeralUtil.generate(6000));
23+
}
2424

25-
@Test
26-
void shouldNotThrowOnBounds() {
27-
int min = 1;
28-
int max = 5999;
25+
@Test
26+
void shouldNotThrowOnBounds() {
27+
int min = 1;
28+
int max = 5999;
2929

30-
assertDoesNotThrow(() -> RomanNumeralUtil.generate(min), "Should not throw exception on " + min);
31-
assertDoesNotThrow(() -> RomanNumeralUtil.generate(max), "Should not throw exception on " + max);
32-
}
30+
assertDoesNotThrow(() -> RomanNumeralUtil.generate(min), "Should not throw exception on " + min);
31+
assertDoesNotThrow(() -> RomanNumeralUtil.generate(max), "Should not throw exception on " + max);
32+
}
3333
}

0 commit comments

Comments
 (0)