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

Add test for Mat_::release()

This commit is contained in:
Vladislav Sovrasov
2017-05-23 12:20:48 +03:00
parent 003745432f
commit 2c2b1405a3
+9 -1
View File
@@ -1725,4 +1725,12 @@ TEST(Core_Mat_array, SplitMerge)
EXPECT_EQ(0, countNonZero(diff));
}
}
#endif
#endif
TEST(Mat, regression_8680)
{
Mat_<Point2i> mat(3,1);
ASSERT_EQ(mat.channels(), 2);
mat.release();
ASSERT_EQ(mat.channels(), 2);
}