Add test for Mat_::release()

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

@ -1726,3 +1726,11 @@ TEST(Core_Mat_array, SplitMerge)
}
}
#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