Add test for Mat_::release()

pull/8698/head
Vladislav Sovrasov 8 years ago
parent 003745432f
commit 2c2b1405a3
  1. 10
      modules/core/test/test_mat.cpp

@ -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);
}

Loading…
Cancel
Save