Browse Source

Fix tests for PriorityQueue implementations.

Mikael Capelle 3 years ago
parent
commit
9b01a61da2
1 changed files with 8 additions and 4 deletions
  1. 8
    4
      src/test/org/insa/algo/utils/PriorityQueueTest.java

+ 8
- 4
src/test/org/insa/algo/utils/PriorityQueueTest.java View File

@@ -97,13 +97,17 @@ public abstract class PriorityQueueTest {
97 97
                 IntStream.range(0, 50).toArray()));
98 98
         objects.add(new TestParameters<>(
99 99
                 IntStream.range(0, 20).mapToObj(MutableInteger::new).toArray(MutableInteger[]::new),
100
-                new int[] { 12, 17, 18, 19, 4, 5, 3, 2, 0, 9, 10, 16, 8, 14, 13, 15, 7, 6, 1,
101
-                        11 }));
100
+                new int[]{ 12, 17, 18, 19, 4, 5, 3, 2, 0, 9, 10, 16, 8, 14, 13, 15, 7, 6, 1, 11 }));
102 101
         objects.add(
103 102
                 new TestParameters<>(
104
-                        Arrays.stream(new int[] { 8, 1, 6, 3, 4, 5, 9 })
103
+                        Arrays.stream(new int[]{ 8, 1, 6, 3, 4, 5, 9 })
105 104
                                 .mapToObj(MutableInteger::new).toArray(MutableInteger[]::new),
106
-                        new int[] { 6, 5, 0, 1, 4, 2, 3 }));
105
+                        new int[]{ 6, 5, 0, 1, 4, 2, 3 }));
106
+        objects.add(
107
+                new TestParameters<>(
108
+                        Arrays.stream(new int[]{ 1, 7, 4, 8, 9, 6, 5 })
109
+                                .mapToObj(MutableInteger::new).toArray(MutableInteger[]::new),
110
+                        new int[]{ 2, 0, 1, 3, 4, 5, 6 }));
107 111
         return objects;
108 112
     }
109 113
 

Loading…
Cancel
Save