From: Dale Anson <danson@ge...>  20040917 03:02:14

Matt, Let me look around, I thought I had written a pile of tests for the Math tasks, but I don't see them in antcontrib's cvs. Dale > There were some limitations in the <math> task that manifested themselves > when someone tried to perform something like this: > > <math result="b"> > <op op=""> > <op op="+"> > <num value="4"/> > <num value="2"/> > </op> > <num value="2"/> > </op> > </math> > > It seems the existing MathTask always kept the numerical values seperate > from the operations, and did operations (such as "") with the numeric > values being the first operands, and not preserving the order in the xml. > Therefore the above calculation became: 2  (4 + 2) instead of: (4+2)  2 > > I have refactored (and put in their own package) the math classes so that > this doesn't happen anymore. I will leave out the specifics of what the > refactoring involved (you can email me directly if you're interested), > but part of it changed the way that Math/StrictMath methods are found and > executed. So keep this in mind, as we have no real test cases for Math. > (anyone willing to write some if i don't have the time?) > > > >  > This SF.Net email is sponsored by: thawte's Crypto Challenge Vl > Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam > Camcorder. More prizes in the weekly Lunch Hour Challenge. > Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m > _______________________________________________ > Antcontribdevelopers mailing list > Antcontribdevelopers@... > https://lists.sourceforge.net/lists/listinfo/antcontribdevelopers > 