From c2d3ce9ce5c886453501717b023d5db096ce2ba5 Mon Sep 17 00:00:00 2001 From: Andrey Pavlenko Date: Wed, 5 Jun 2013 12:41:09 +0400 Subject: [PATCH] fix failing test small matrix becomes the same after shuffling --- .../android_test/src/org/opencv/test/core/CoreTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/java/android_test/src/org/opencv/test/core/CoreTest.java b/modules/java/android_test/src/org/opencv/test/core/CoreTest.java index 9b49ba4d2..e0a882bbc 100644 --- a/modules/java/android_test/src/org/opencv/test/core/CoreTest.java +++ b/modules/java/android_test/src/org/opencv/test/core/CoreTest.java @@ -1827,9 +1827,9 @@ public class CoreTest extends OpenCVTestCase { } public void testRandShuffleMat() { - Mat original = new Mat(1, 5, CvType.CV_32F) { + Mat original = new Mat(1, 10, CvType.CV_32F) { { - put(0, 0, 7, 5, 2, 8, 1); + put(0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9); } }; Mat shuffled = original.clone(); @@ -1845,9 +1845,9 @@ public class CoreTest extends OpenCVTestCase { } public void testRandShuffleMatDouble() { - Mat original = new Mat(1, 5, CvType.CV_32F) { + Mat original = new Mat(1, 10, CvType.CV_32F) { { - put(0, 0, 7, 5, 2, 8, 1); + put(0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9); } }; Mat shuffled = original.clone();