[Mono-list] Overflow exception in Parse
Nick Drochak
ndrochak@gol.com
Thu, 27 Dec 2001 08:08:05 +0900
Miguel,
The tests for the Parse methods are *not* catching the Overflow
exceptions that are generated by the "shift and accumulate" statements,
e.g.
val = checked (val * 10 + d);
I was working specifically with UInt32Test.cs to figure out why the test
was failing in the first place, but then I noticed all the tests for
Parse are not catching the Overflow exception like they should. I'm not
entirely sure that line of code is the problem, but for sure an Overflow
exception is being missed by the tests and caught by Nunit itself. Do
'make test' to see for yourself.
I didn't have more time today to work on this, but I thought I'd let you
know in case you can fix it before I get a chance to work on it again.
Regards,
Nick D.