Commit df920f76 authored by Davis King's avatar Davis King

Changed unit test so it has the same behavior everywhere. Previously, since

the order of function argument evaluation is not defined, the test had slightly
different results on different systems which could cause the tests to falsely
indicate failure.
parent 131686f4
...@@ -46,8 +46,10 @@ namespace ...@@ -46,8 +46,10 @@ namespace
if (rnd.get_random_double() < 0.7 || count < 4) if (rnd.get_random_double() < 0.7 || count < 4)
{ {
// make a random bump // make a random bump
dlib::vector<double,2> pp(rnd.get_random_gaussian()/3, dlib::vector<double,2> pp;
rnd.get_random_gaussian()/3); pp.x() = rnd.get_random_gaussian()/3;
pp.y() = rnd.get_random_gaussian()/3;
++count; ++count;
kf.update(p+pp); kf.update(p+pp);
} }
......
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