[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    Re: [jexl] Test failing with JUnit 4.11
From:       Emmanuel Bourg <ebourg () apache ! org>
Date:       2013-05-31 20:58:55
Message-ID: 51A90F0F.4090500 () apache ! org
[Download RAW message or body]

Le 31/05/2013 19:14, sebb a écrit :
> Looks like the problem might be the engine settings; divide by 0 will
> throw an error in strict mode (lenient=false)

That's the missing piece of the puzzle. testDivideByZero is declared
after testCalculations but is executed before with JUnit 4.11.
testDivideByZero sets lenient=false, thus causing testCalculations to fail.

Setting lenient=true at the beginning of testCalculations solves the
issue, JEXL 3 already does that.

Thanks all for your help!

Emmanuel Bourg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic