Skip to content

Commit 03f10fa

Browse files
committed
Fix
1 parent 0449f10 commit 03f10fa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/test/java/com/thealgorithms/scheduling/NonPreemptivePrioritySchedulingTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ public class NonPreemptivePrioritySchedulingTest {
88

99
@Test
1010
public void testCalculateAverageWaitingTime() {
11-
NonPreemptivePriorityScheduling.Process[] processes = {
12-
new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
11+
NonPreemptivePriorityScheduling.Process[] processes = {new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
1312
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1), new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
1413
};
1514
NonPreemptivePriorityScheduling.Process[] executionOrder = NonPreemptivePriorityScheduling.scheduleProcesses(processes);
@@ -22,8 +21,7 @@ public void testCalculateAverageWaitingTime() {
2221

2322
@Test
2423
public void testCalculateAverageTurnaroundTime() {
25-
NonPreemptivePriorityScheduling.Process[] processes = {
26-
new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
24+
NonPreemptivePriorityScheduling.Process[] processes = {new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
2725
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1), new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
2826
};
2927
NonPreemptivePriorityScheduling.Process[] executionOrder = NonPreemptivePriorityScheduling.scheduleProcesses(processes);
@@ -36,8 +34,7 @@ public void testCalculateAverageTurnaroundTime() {
3634

3735
@Test
3836
public void testStartTimeIsCorrect() {
39-
NonPreemptivePriorityScheduling.Process[] processes = {
40-
new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
37+
NonPreemptivePriorityScheduling.Process[] processes = {new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
4138
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1), new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
4239
};
4340
NonPreemptivePriorityScheduling.Process[] executionOrder = NonPreemptivePriorityScheduling.scheduleProcesses(processes);

0 commit comments

Comments
 (0)