Re: [MATH] Change test code to remove fail("wrong exception type caught")

2010-10-02 Thread sebb
On 2 October 2010 15:08, Phil Steitz wrote: > On 10/1/10 10:52 AM, Luc Maisonobe wrote: >> >> Le 01/10/2010 16:34, Gilles Sadowski a écrit : >>> >>> On Fri, Oct 01, 2010 at 03:17:58PM +0100, sebb wrote: There are quite a few test cases that have code like: public void testSomet

Re: [MATH] Change test code to remove fail("wrong exception type caught")

2010-10-02 Thread Phil Steitz
On 10/1/10 10:52 AM, Luc Maisonobe wrote: Le 01/10/2010 16:34, Gilles Sadowski a écrit : On Fri, Oct 01, 2010 at 03:17:58PM +0100, sebb wrote: There are quite a few test cases that have code like: public void testSomething(){ try { something(); fail("an exception should have

Re: [MATH] Change test code to remove fail("wrong exception type caught")

2010-10-01 Thread Luc Maisonobe
Le 01/10/2010 16:34, Gilles Sadowski a écrit : > On Fri, Oct 01, 2010 at 03:17:58PM +0100, sebb wrote: >> There are quite a few test cases that have code like: >> >> public void testSomething(){ >> try { >> something(); >> fail("an exception should have been caught"); >> } catch

Re: [MATH] Change test code to remove fail("wrong exception type caught")

2010-10-01 Thread sebb
On 1 October 2010 15:34, Gilles Sadowski wrote: > On Fri, Oct 01, 2010 at 03:17:58PM +0100, sebb wrote: >> There are quite a few test cases that have code like: >> >> public void testSomething(){ >>     try { >>       something(); >>       fail("an exception should have been caught"); >>     } cat

Re: [MATH] Change test code to remove fail("wrong exception type caught")

2010-10-01 Thread Gilles Sadowski
On Fri, Oct 01, 2010 at 03:17:58PM +0100, sebb wrote: > There are quite a few test cases that have code like: > > public void testSomething(){ > try { > something(); > fail("an exception should have been caught"); > } catch (EstimationException ee) { > // expected behavio

[MATH] Change test code to remove fail("wrong exception type caught")

2010-10-01 Thread sebb
There are quite a few test cases that have code like: public void testSomething(){ try { something(); fail("an exception should have been caught"); } catch (EstimationException ee) { // expected behavior } catch (Exception e) { fail("wrong exception type caught"