This test failed b/c the system slept for less than a second.
My code is actually correct if you look at the test code:

   $norm->start();
   sleep(1);
   $norm->stop();

   $elap = $norm->getTime();
   cmp_ok( $elap, ">=", 1, " slept for a second");

You can actually see that your system slept for less than
0.99383 seconds, since my code adds a few microseconds to
this time. I need to find a better test case for this then,
any suggestions for a more precise test-scenario. I looked
at Time::HiRes test-cases and he leaves himself a 20% variance
between expected and calculated, which mine also passes
( 0.98 <= 0.99383 <= 1.02 ) for expected 1 second.


At 09:24 AM 10/31/2003, you wrote:
t/1_norm.....NOK 10#     Failed test (t/1_norm.t at line 29)
#     '0.99383'
#         >=
#     '1'
t/1_norm.....ok 11/11# Looks like you failed 1 tests of 11.



Reply via email to