Skip to content

Commit 0449f10

Browse files
committed
Fix
1 parent 45e809a commit 0449f10

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
@@ -10,8 +10,7 @@ public class NonPreemptivePrioritySchedulingTest {
1010
public void testCalculateAverageWaitingTime() {
1111
NonPreemptivePriorityScheduling.Process[] processes = {
1212
new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
13-
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1),
14-
new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
13+
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1), new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
1514
};
1615
NonPreemptivePriorityScheduling.Process[] executionOrder = NonPreemptivePriorityScheduling.scheduleProcesses(processes);
1716

@@ -25,8 +24,7 @@ public void testCalculateAverageWaitingTime() {
2524
public void testCalculateAverageTurnaroundTime() {
2625
NonPreemptivePriorityScheduling.Process[] processes = {
2726
new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
28-
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1),
29-
new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
27+
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1), new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
3028
};
3129
NonPreemptivePriorityScheduling.Process[] executionOrder = NonPreemptivePriorityScheduling.scheduleProcesses(processes);
3230

@@ -40,8 +38,7 @@ public void testCalculateAverageTurnaroundTime() {
4038
public void testStartTimeIsCorrect() {
4139
NonPreemptivePriorityScheduling.Process[] processes = {
4240
new NonPreemptivePriorityScheduling.Process(1, 0, 10, 2), // id, arrivalTime, burstTime, priority
43-
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1),
44-
new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
41+
new NonPreemptivePriorityScheduling.Process(2, 0, 5, 1), new NonPreemptivePriorityScheduling.Process(3, 0, 8, 3)
4542
};
4643
NonPreemptivePriorityScheduling.Process[] executionOrder = NonPreemptivePriorityScheduling.scheduleProcesses(processes);
4744

0 commit comments

Comments
 (0)