mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added more serialization tests for dlib::rand.
This commit is contained in:
parent
419eebc81b
commit
a44ae8747b
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user