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

core: fix cv::Mat constructor

This commit is contained in:
Alexander Alekhin
2018-03-22 15:35:54 +03:00
parent 2dff9f4c6d
commit 4378e8fcc0
2 changed files with 9 additions and 7 deletions
+4
View File
@@ -1724,6 +1724,10 @@ TEST(Mat, from_initializer_list)
ASSERT_DOUBLE_EQ(cvtest::norm(A, B, NORM_INF), 0.);
ASSERT_DOUBLE_EQ(cvtest::norm(A, C, NORM_INF), 0.);
ASSERT_DOUBLE_EQ(cvtest::norm(B, C, NORM_INF), 0.);
auto D = Mat_<double>({2, 3}, {1, 2, 3, 4, 5, 6});
EXPECT_EQ(2, D.rows);
EXPECT_EQ(3, D.cols);
}
TEST(Mat_, from_initializer_list)