Commit a44ae874 authored by Davis King's avatar Davis King

Added more serialization tests for dlib::rand.

parent 419eebc8
...@@ -160,7 +160,10 @@ namespace ...@@ -160,7 +160,10 @@ namespace
for (int i =0; i < 1000; ++i) for (int i =0; i < 1000; ++i)
{
r.get_random_32bit_number(); r.get_random_32bit_number();
r.get_random_gaussian();
}
ostringstream sout; ostringstream sout;
serialize(r, sout); serialize(r, sout);
...@@ -172,6 +175,7 @@ namespace ...@@ -172,6 +175,7 @@ namespace
for (int i =0; i < 1000; ++i) for (int i =0; i < 1000; ++i)
{ {
DLIB_TEST(r.get_random_32bit_number() == r2.get_random_32bit_number()); DLIB_TEST(r.get_random_32bit_number() == r2.get_random_32bit_number());
DLIB_TEST(r.get_random_gaussian() == r2.get_random_gaussian());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment