提交 7946fcdb 编写于 作者: V Vadim Pisarevsky

added test for #2336

上级 78e89890
...@@ -958,6 +958,10 @@ bool CV_OperationsTest::operations1() ...@@ -958,6 +958,10 @@ bool CV_OperationsTest::operations1()
if( !(minidx[0] == 31 && minidx[1] == 0 && maxidx[0] == 12 && maxidx[1] == 0 && if( !(minidx[0] == 31 && minidx[1] == 0 && maxidx[0] == 12 && maxidx[1] == 0 &&
minval == -7 && maxval == 12)) minval == -7 && maxval == 12))
throw test_excep(); 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&) catch(const test_excep&)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册