Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
422223ce
"...api/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "1051ca81a60073702320b20eb633b178c3dd1c9b"
Commit
422223ce
authored
May 21, 2014
by
Davis King
Browse files
Added unit tests for new serialization syntax.
parent
e314061e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
dlib/test/serialize.cpp
dlib/test/serialize.cpp
+14
-0
No files found.
dlib/test/serialize.cpp
View file @
422223ce
...
@@ -565,6 +565,20 @@ namespace
...
@@ -565,6 +565,20 @@ namespace
obj.assert_in_state_2();
obj.assert_in_state_2();
*/
*/
test_object
obj2
;
obj
.
set_state_1
();
obj2
.
set_state_2
();
dlib
::
serialize
(
"serialization_test.dat"
)
<<
obj
<<
obj2
;
obj
.
assert_in_state_1
();
obj2
.
assert_in_state_2
();
obj
.
set_state_2
();
obj2
.
set_state_1
();
obj
.
assert_in_state_2
();
obj2
.
assert_in_state_1
();
dlib
::
deserialize
(
"serialization_test.dat"
)
>>
obj
>>
obj2
;
obj
.
assert_in_state_1
();
obj2
.
assert_in_state_2
();
}
}
...
...
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