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
a44ae874
Commit
a44ae874
authored
Dec 27, 2011
by
Davis King
Browse files
Added more serialization tests for dlib::rand.
parent
419eebc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dlib/test/rand.cpp
dlib/test/rand.cpp
+4
-0
No files found.
dlib/test/rand.cpp
View file @
a44ae874
...
...
@@ -160,7 +160,10 @@ namespace
for
(
int
i
=
0
;
i
<
1000
;
++
i
)
{
r
.
get_random_32bit_number
();
r
.
get_random_gaussian
();
}
ostringstream
sout
;
serialize
(
r
,
sout
);
...
...
@@ -172,6 +175,7 @@ namespace
for
(
int
i
=
0
;
i
<
1000
;
++
i
)
{
DLIB_TEST
(
r
.
get_random_32bit_number
()
==
r2
.
get_random_32bit_number
());
DLIB_TEST
(
r
.
get_random_gaussian
()
==
r2
.
get_random_gaussian
());
}
}
...
...
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