Skip to content

Commit f61786b

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

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

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

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

3737
String getExpectedTree() {
38-
String tree = """
39-
10=>20<=30
40-
END=>10<=END
41-
END=>30<=END
42-
2""";
43-
44-
return tree.replace("\n", "");
38+
return "10=>20<=30END=>10<=ENDEND=>30<=END2";
4539
}
4640

4741
String getActualTree() {
@@ -67,17 +61,7 @@ void testTreeCreation() {
6761

6862
tree.display();
6963

70-
String expectedTree = """
71-
15=>25<=30
72-
10=>15<=19
73-
5=>10<=END
74-
END=>5<=END
75-
16=>19<=20
76-
END=>16<=END
77-
END=>20<=END
78-
27=>30<=END
79-
END=>27<=END
80-
4""".replace("\n", "");
64+
String expectedTree = "15=>25<=3010=>15<=195=>10<=ENDEND=>5<=END16=>19<=20END=>16<=ENDEND=>20<=END27=>30<=ENDEND=>27<=END4";
8165

8266
assertEquals(expectedTree, getActualTree());
8367
}
@@ -125,18 +109,8 @@ void testRotatesNotTriggeredWhenBFEqualsOne(int node, String expectedTree) {
125109

126110
public static Stream<Arguments> getTreeNodesInputForBFEqualsOneRotations() {
127111
return Stream.of(
128-
Arguments.of(5, """
129-
10=>20<=30
130-
5=>10<=END
131-
END=>5<=END
132-
END=>30<=END
133-
3""".replace("\n", "")),
134-
Arguments.of(35, """
135-
10=>20<=30
136-
END=>10<=END
137-
END=>30<=35
138-
END=>35<=END
139-
3""".replace("\n", ""))
112+
Arguments.of(5, "10=>20<=305=>10<=ENDEND=>5<=ENDEND=>30<=END3"),
113+
Arguments.of(35, "10=>20<=30END=>10<=ENDEND=>30<=35END=>35<=END3")
140114
);
141115
}
142116

0 commit comments

Comments
 (0)