Re: intdiv

new topic     » goto parent     » topic index » view thread      » older message » newer message
bill said...

This says the whole of the maths module is suspect.
I don't particularly want to go through it.

Many, many functions rely on the maths module.

We've got unit tests set up. Take a look at tests/t_math.e in your euphoria directory (are they shipped with the windows installation?...if not you can see them in the repository). It's always possible (as with GCD) that we've missed some edge cases and haven't got it quite right. But that's the place to see how we're verifying the correctness of each function, and where to add additional edge cases.

I just ran a test coverage analysis. We're definitely testing each function, though there are 20 lines (out of 296) that are never executed. There are also, undoubtedly, more edge cases that aren't exercised. NB: I ran this against current 4.1 source, and I don't think the recent GCD fixes have been merged there yet, so YMMV.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu