You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (JIRA)" <ji...@apache.org> on 2010/04/14 02:25:54 UTC
[jira] Closed: (MATH-292) TestUtils.assertRelativelyEquals()
generates misleading error on failure
[ https://issues.apache.org/jira/browse/MATH-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Steitz closed MATH-292.
----------------------------
> TestUtils.assertRelativelyEquals() generates misleading error on failure
> ------------------------------------------------------------------------
>
> Key: MATH-292
> URL: https://issues.apache.org/jira/browse/MATH-292
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Sebb
> Fix For: 2.1
>
> Attachments: MATH-292.patch
>
>
> TestUtils.assertRelativelyEquals() generates misleading error on failure.
> For example:
> TestUtils.assertRelativelyEquals(1.0, 0.10427661385154971, 1.0e-9)
> generates the error message:
> junit.framework.AssertionFailedError: expected:<0.0> but was:<0.8957233861484503>
> which is not very helpful.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira