From 58268b6eef993383fd0ff41fd1a7664983d17a72 Mon Sep 17 00:00:00 2001 From: Ruslan Garnov Date: Wed, 28 Oct 2020 21:52:53 +0300 Subject: [PATCH] Added ND GMatDesc serialization test --- modules/gapi/test/s11n/gapi_s11n_tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/gapi/test/s11n/gapi_s11n_tests.cpp b/modules/gapi/test/s11n/gapi_s11n_tests.cpp index 2fc1e46253..e332552b1d 100644 --- a/modules/gapi/test/s11n/gapi_s11n_tests.cpp +++ b/modules/gapi/test/s11n/gapi_s11n_tests.cpp @@ -365,6 +365,12 @@ TEST_F(S11N_Basic, Test_MatDesc) { EXPECT_EQ(v, get()); } +TEST_F(S11N_Basic, Test_MatDescND) { + cv::GMatDesc v = { CV_8U, {1,1,224,224} }; + put(v); + EXPECT_EQ(v, get()); +} + TEST_F(S11N_Basic, Test_MetaArg_MatDesc) { cv::GMatDesc desc = { CV_8U, 1,{ 320,240 } }; auto v = cv::GMetaArg{ desc };