From 7946fcdb696b77f4f352249f78c3d5719fec5341 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Mon, 17 Sep 2012 16:12:30 +0400 Subject: [PATCH] added test for #2336 --- modules/core/test/test_operations.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/core/test/test_operations.cpp b/modules/core/test/test_operations.cpp index 6b5f6e0cc1..a5d91a402f 100644 --- a/modules/core/test/test_operations.cpp +++ b/modules/core/test/test_operations.cpp @@ -958,6 +958,10 @@ bool CV_OperationsTest::operations1() if( !(minidx[0] == 31 && minidx[1] == 0 && maxidx[0] == 12 && maxidx[1] == 0 && minval == -7 && maxval == 12)) throw test_excep(); + + Matx33f b(1.f, 2.f, 3.f, 4.f, 5.f, 6.f, 7.f, 8.f, 9.f), c; + add(Mat::zeros(3, 3, CV_32F), b, c); + CV_Assert( norm(b, c, CV_C) == 0 ); } catch(const test_excep&) {