From a44ae8747b7b2f33be382ad97a9b4d0f750dc459 Mon Sep 17 00:00:00 2001 From: Davis King Date: Tue, 27 Dec 2011 08:58:13 -0500 Subject: [PATCH] Added more serialization tests for dlib::rand. --- dlib/test/rand.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlib/test/rand.cpp b/dlib/test/rand.cpp index 097e2ac1a..f57c3b658 100644 --- a/dlib/test/rand.cpp +++ b/dlib/test/rand.cpp @@ -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()); } }