commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Semrau (JIRA)" <j...@apache.org>
Subject [jira] Updated: (MATH-239) Add gcd and lcm for long values in MathUtils
Date Sun, 22 Feb 2009 19:19:01 GMT

     [ 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.


Mime
View raw message