Added more serialization tests for dlib::rand.

This commit is contained in:
Davis King 2011-12-27 08:58:13 -05:00
parent 419eebc81b
commit a44ae8747b

View File

@ -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());
}
}