[ 
https://issues.apache.org/jira/browse/MATH-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Semrau updated MATH-239:
----------------------------------

    Attachment: gcdForLong.txt

The long versions of gcd and lcm are adapted copies of the int versions.

I added some verification of exception messages to the tests, because I saw the 
change to gcd(int, int) where the exception message now contains the illegal 
arguments. To facilitate these (and possibly other) verifications, I added 
TestUtils.assertMessageContains(). Two of these verifications fail, because the 
exception is thrown by mulAndCheck without the illegal arguments; they are 
commented.


> Add gcd and lcm for long values in MathUtils
> --------------------------------------------
>
>                 Key: MATH-239
>                 URL: https://issues.apache.org/jira/browse/MATH-239
>             Project: Commons Math
>          Issue Type: New Feature
>            Reporter: Christian Semrau
>            Priority: Minor
>             Fix For: 2.1
>
>         Attachments: gcdForLong.txt
>
>
> I suggest adding MathUtils.gcd and MathUtils.lcm for long values in addition 
> to the methods for int values.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to