Skip to content

Commit eaf81c7

Browse files
committed
Made style changes
According to Clang again...
1 parent 6774385 commit eaf81c7

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/test/java/com/thealgorithms/datastructures/trees/AVLSimpleTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ void tearDown() {
3535
======================== */
3636

3737
String getExpectedTree() {
38-
return """
38+
String tree = """
3939
10=>20<=30
4040
END=>10<=END
4141
END=>30<=END
42-
2""".replace("\n", "");
42+
2""";
43+
44+
return tree.replace("\n", "");
4345
}
4446

4547
String getActualTree() {

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ void runtimeErrorTest() {
113113
Assertions.assertAll(randCheck, rangeCheck, piCheck, eCheck, setCheck);
114114
}
115115

116-
117116
@Test
118117
@DisplayName("Should divide 10 by 2")
119118
void divideByNum() {
@@ -138,7 +137,6 @@ void divideDoubleByZero(double expected, MathBuilder.Builder actual, String erro
138137
Assertions.assertAll(noThrowOnBuild, noThrowOnDivideZero, resultIsInfinite, equalsExpected);
139138
}
140139

141-
142140
static List<Arguments> divideDoubleByZeroHelper() {
143141
return List.of(Arguments.of(Double.POSITIVE_INFINITY, new MathBuilder.Builder(10.5).openParenthesis(0).closeParenthesisAndDivide(), "10.5 / 0 should be +Infinity"),
144142
Arguments.of(Double.NEGATIVE_INFINITY, new MathBuilder.Builder(-10.5).openParenthesis(0).closeParenthesisAndDivide(), "-10.5 / 0 should be -Infinity"));
@@ -159,7 +157,6 @@ void randomFunctionsTest() {
159157
Assertions.assertAll(isBelowMax, isAboveMin, isWithinRange);
160158
}
161159

162-
163160
@ParameterizedTest
164161
@MethodSource("radiansHelper")
165162
void toRadiansTests(double expectedAngle, double actualAngle) {
@@ -244,5 +241,4 @@ void minTest() {
244241

245242
Assertions.assertAll(minCheck1, minCheck2, minCheck3, minCheck4, notEqualsCheck1, notEqualsCheck2);
246243
}
247-
248244
}

0 commit comments

Comments
 (0)