commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barnhill (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MATH-1349) Addition of array-based methods to TestUtils
Date Sat, 26 Mar 2016 19:51:25 GMT

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

Eric Barnhill updated MATH-1349:
--------------------------------
    Attachment: TestUtils.java

Attached is a patch for some changes I made to TestUtils, to enable more efficient JUnit testing
of Complex[9 to double[] and float[] operations.

> Addition of array-based methods to TestUtils
> --------------------------------------------
>
>                 Key: MATH-1349
>                 URL: https://issues.apache.org/jira/browse/MATH-1349
>             Project: Commons Math
>          Issue Type: Sub-task
>    Affects Versions: 4.0
>            Reporter: Eric Barnhill
>            Priority: Trivial
>             Fix For: 4.0
>
>         Attachments: TestUtils.java
>
>
> To enable efficient JUnit testing of the Complex[] to float[] / double[] operations in
Complex Utils, two methods were added to TestUtils:
> public static void assertEquals(String msg, float[] expected, float[] observed, float
tolerance)
> public static void assertEquals(String msg, Complex[] expected, Complex[] observed, double
tolerance)
> patch attached



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message