You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Eric Barnhill (JIRA)" <ji...@apache.org> on 2016/03/26 20:51:25 UTC

[jira] [Updated] (MATH-1349) Addition of array-based methods to TestUtils

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