fixed Core_Array.expressions test
authorVadim Pisarevsky <no@email>
Tue, 10 Apr 2012 21:28:53 +0000 (21:28 +0000)
committerVadim Pisarevsky <no@email>
Tue, 10 Apr 2012 21:28:53 +0000 (21:28 +0000)
modules/core/test/test_operations.cpp

index 8528fc3..3917e5f 100644 (file)
@@ -630,7 +630,7 @@ bool CV_OperationsTest::TestTemplateMat()
 
         Mat_<uchar> matFromData(1, 4, uchar_data);
         const Mat_<uchar> mat2 = matFromData.clone();
-        CHECK_DIFF(matFromData, eye.reshape(1));
+        CHECK_DIFF(matFromData, eye.reshape(1, 1));
         if (matFromData(Point(0,0)) != uchar_data[0])throw test_excep();
         if (mat2(Point(0,0)) != uchar_data[0]) throw test_excep();