Skip to content

Commit 29c8dbb

Browse files
github-actionsgithub-actions
github-actions
authored and
github-actions
committed
Formatted with Google Java Formatter
1 parent e2e8337 commit 29c8dbb

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

src/main/java/com/examplehub/sorts/QuickSortLomutoPartition.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import com.examplehub.utils.SortUtils;
44

5-
/**
6-
* https://en.wikipedia.org/wiki/Quicksort#Lomuto_partition_scheme
7-
*/
5+
/** https://en.wikipedia.org/wiki/Quicksort#Lomuto_partition_scheme */
86
public class QuickSortLomutoPartition implements Sort {
97

108
@Override

src/test/java/com/examplehub/sorts/BubbleSortV2Test.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
package com.examplehub.sorts;
22

3+
import static org.junit.jupiter.api.Assertions.*;
4+
35
import com.examplehub.domain.Student;
46
import com.examplehub.utils.RandomUtils;
57
import com.examplehub.utils.SortUtils;
8+
import java.util.Arrays;
69
import org.junit.jupiter.api.BeforeEach;
710
import org.junit.jupiter.api.Test;
811

9-
import java.util.Arrays;
10-
11-
import static org.junit.jupiter.api.Assertions.*;
12-
1312
class BubbleSortV2Test {
1413

1514
private Sort sort;
@@ -29,7 +28,7 @@ void testSort() {
2928
@Test
3029
void testSortIntegers() {
3130
Integer[] integers =
32-
Arrays.stream(RandomUtils.randomInts(-50, 50, 100)).boxed().toArray(Integer[]::new);
31+
Arrays.stream(RandomUtils.randomInts(-50, 50, 100)).boxed().toArray(Integer[]::new);
3332
sort.sort(integers);
3433
assertTrue(SortUtils.isSorted(integers));
3534
}
@@ -56,4 +55,4 @@ void testComparable() {
5655
sort.sort(students);
5756
assertTrue(SortUtils.isSorted(students));
5857
}
59-
}
58+
}

src/test/java/com/examplehub/sorts/QuickSortLomutoPartitionTest.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package com.examplehub.sorts;
22

3+
import static org.junit.jupiter.api.Assertions.*;
4+
35
import com.examplehub.utils.RandomUtils;
46
import com.examplehub.utils.SortUtils;
7+
import java.util.Arrays;
58
import org.junit.jupiter.api.BeforeEach;
69
import org.junit.jupiter.api.Test;
710

8-
import java.util.Arrays;
9-
10-
import static org.junit.jupiter.api.Assertions.*;
11-
1211
class QuickSortLomutoPartitionTest {
1312
private Sort sort;
1413

@@ -31,7 +30,7 @@ void testQuickSort() {
3130
@Test
3231
void testSortIntegers() {
3332
Integer[] integers =
34-
Arrays.stream(RandomUtils.randomInts(-50, 50, 100)).boxed().toArray(Integer[]::new);
33+
Arrays.stream(RandomUtils.randomInts(-50, 50, 100)).boxed().toArray(Integer[]::new);
3534
sort.sort(integers);
3635
assertTrue(SortUtils.isSorted(integers));
3736
}
@@ -46,4 +45,4 @@ void testSortedDoubles() {
4645
sort.sort(doubles);
4746
assertTrue(SortUtils.isSorted(doubles));
4847
}
49-
}
48+
}

0 commit comments

Comments
 (0)