1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #6910 from ilya-lavrenov:clone

This commit is contained in:
Alexander Alekhin
2016-07-20 15:32:22 +00:00
5 changed files with 12 additions and 12 deletions
-1
View File
@@ -706,7 +706,6 @@ protected:
EXPECT_EQ(_em_in.rows , _em_out.rows);
EXPECT_EQ(_em_in.cols , _em_out.cols);
EXPECT_EQ(_em_in.dims , _em_out.dims);
EXPECT_EQ(_em_in.depth(), _em_out.depth());
EXPECT_TRUE(_em_in.empty());
+8
View File
@@ -1538,3 +1538,11 @@ TEST(Mat, push_back_vector)
ASSERT_EQ(6, result.rows);
}
TEST(Mat, regression_5917_clone_empty)
{
Mat cloned;
Mat_<Point2f> source(5, 0);
ASSERT_NO_THROW(cloned = source.clone());
}