strange behavior of tests

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

strange behavior of tests

Stéphane Ducasse
This is strange
I was running the tests of the fame project

MCHttpRepository
        location: 'http://www.smalltalkhub.com/mc/Moose/Fame/main'
        user: 'StephaneDucasse'
        password: ''

when I run the tests they get red and I get a lot of zeroDivide error….
something related to the progress bar
because I get a division by zero

When I edit the code so that the division is never 0
        just adding + 1
as in the method

progress
        ^ (currentValue - min) / ((max - min) + 1)

the tests get green.

I'm puzzled.

Stef