From 9b01a61da2c85a577460b29850d92e80d322c1f4 Mon Sep 17 00:00:00 2001 From: Mikael Capelle Date: Tue, 27 Mar 2018 12:23:44 +0200 Subject: [PATCH] Fix tests for PriorityQueue implementations. --- src/test/org/insa/algo/utils/PriorityQueueTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/test/org/insa/algo/utils/PriorityQueueTest.java b/src/test/org/insa/algo/utils/PriorityQueueTest.java index 183ab24..3d5f734 100644 --- a/src/test/org/insa/algo/utils/PriorityQueueTest.java +++ b/src/test/org/insa/algo/utils/PriorityQueueTest.java @@ -97,13 +97,17 @@ public abstract class PriorityQueueTest { IntStream.range(0, 50).toArray())); objects.add(new TestParameters<>( IntStream.range(0, 20).mapToObj(MutableInteger::new).toArray(MutableInteger[]::new), - new int[] { 12, 17, 18, 19, 4, 5, 3, 2, 0, 9, 10, 16, 8, 14, 13, 15, 7, 6, 1, - 11 })); + new int[]{ 12, 17, 18, 19, 4, 5, 3, 2, 0, 9, 10, 16, 8, 14, 13, 15, 7, 6, 1, 11 })); objects.add( new TestParameters<>( - Arrays.stream(new int[] { 8, 1, 6, 3, 4, 5, 9 }) + Arrays.stream(new int[]{ 8, 1, 6, 3, 4, 5, 9 }) .mapToObj(MutableInteger::new).toArray(MutableInteger[]::new), - new int[] { 6, 5, 0, 1, 4, 2, 3 })); + new int[]{ 6, 5, 0, 1, 4, 2, 3 })); + objects.add( + new TestParameters<>( + Arrays.stream(new int[]{ 1, 7, 4, 8, 9, 6, 5 }) + .mapToObj(MutableInteger::new).toArray(MutableInteger[]::new), + new int[]{ 2, 0, 1, 3, 4, 5, 6 })); return objects; }