Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
c4d2e3c0
Commit
c4d2e3c0
authored
Sep 23, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15566 from alalek:issue_15558
parents
b40fd6de
fcc69d5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
test_io.cpp
modules/core/test/test_io.cpp
+12
-12
No files found.
modules/core/test/test_io.cpp
View file @
c4d2e3c0
...
...
@@ -795,10 +795,10 @@ static void test_filestorage_basic(int write_flags, const char* suffix_name, boo
EXPECT_EQ
(
_em_in
.
depth
(),
_em_out
.
depth
());
EXPECT_TRUE
(
_em_in
.
empty
());
EXPEC
T_EQ
(
_2d_in
.
rows
,
_2d_out
.
rows
);
EXPEC
T_EQ
(
_2d_in
.
cols
,
_2d_out
.
cols
);
EXPEC
T_EQ
(
_2d_in
.
dims
,
_2d_out
.
dims
);
EXPEC
T_EQ
(
_2d_in
.
depth
(),
_2d_out
.
depth
());
ASSER
T_EQ
(
_2d_in
.
rows
,
_2d_out
.
rows
);
ASSER
T_EQ
(
_2d_in
.
cols
,
_2d_out
.
cols
);
ASSER
T_EQ
(
_2d_in
.
dims
,
_2d_out
.
dims
);
ASSER
T_EQ
(
_2d_in
.
depth
(),
_2d_out
.
depth
());
errors
=
0
;
for
(
int
i
=
0
;
i
<
_2d_out
.
rows
;
++
i
)
...
...
@@ -819,16 +819,16 @@ static void test_filestorage_basic(int write_flags, const char* suffix_name, boo
}
}
EXPEC
T_EQ
(
_nd_in
.
rows
,
_nd_out
.
rows
);
EXPEC
T_EQ
(
_nd_in
.
cols
,
_nd_out
.
cols
);
EXPEC
T_EQ
(
_nd_in
.
dims
,
_nd_out
.
dims
);
EXPEC
T_EQ
(
_nd_in
.
depth
(),
_nd_out
.
depth
());
ASSER
T_EQ
(
_nd_in
.
rows
,
_nd_out
.
rows
);
ASSER
T_EQ
(
_nd_in
.
cols
,
_nd_out
.
cols
);
ASSER
T_EQ
(
_nd_in
.
dims
,
_nd_out
.
dims
);
ASSER
T_EQ
(
_nd_in
.
depth
(),
_nd_out
.
depth
());
EXPECT_EQ
(
0
,
cv
::
norm
(
_nd_in
,
_nd_out
,
NORM_INF
));
EXPEC
T_EQ
(
_rd_in
.
rows
,
_rd_out
.
rows
);
EXPEC
T_EQ
(
_rd_in
.
cols
,
_rd_out
.
cols
);
EXPEC
T_EQ
(
_rd_in
.
dims
,
_rd_out
.
dims
);
EXPEC
T_EQ
(
_rd_in
.
depth
(),
_rd_out
.
depth
());
ASSER
T_EQ
(
_rd_in
.
rows
,
_rd_out
.
rows
);
ASSER
T_EQ
(
_rd_in
.
cols
,
_rd_out
.
cols
);
ASSER
T_EQ
(
_rd_in
.
dims
,
_rd_out
.
dims
);
ASSER
T_EQ
(
_rd_in
.
depth
(),
_rd_out
.
depth
());
EXPECT_EQ
(
0
,
cv
::
norm
(
_rd_in
,
_rd_out
,
NORM_INF
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment