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
c4c4ac28
Commit
c4c4ac28
authored
5 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
revert changes in modules/core/src/persistence_yml.cpp (PR15842)
parents
0d7f7709
a165f555
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
test_io.cpp
modules/core/test/test_io.cpp
+19
-0
No files found.
modules/core/test/test_io.cpp
View file @
c4c4ac28
...
...
@@ -1640,4 +1640,23 @@ TEST(Core_InputOutput, FileStorage_free_file_after_exception)
ASSERT_EQ
(
0
,
std
::
remove
(
fileName
.
c_str
()));
}
TEST
(
Core_InputOutput
,
FileStorage_YAML_parse_multiple_documents
)
{
const
std
::
string
filename
=
"FileStorage_YAML_parse_multiple_documents.yml"
;
FileStorage
fs
;
fs
.
open
(
filename
,
FileStorage
::
WRITE
);
fs
<<
"a"
<<
42
;
fs
.
release
();
fs
.
open
(
filename
,
FileStorage
::
APPEND
);
fs
<<
"b"
<<
1988
;
fs
.
release
();
fs
.
open
(
filename
,
FileStorage
::
READ
);
ASSERT_EQ
(
42
,
(
int
)
fs
[
"a"
]);
ASSERT_EQ
(
1988
,
(
int
)
fs
[
"b"
]);
fs
.
release
();
}
}}
// namespace
This diff is collapsed.
Click to expand it.
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