commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (NUMBERS-38) No unit tests for "LanczosApproximation" class
Date Sat, 03 Jun 2017 19:19:04 GMT


Gilles commented on NUMBERS-38:


Thanks for taking this on.
However, the main interest here is not so much about coverage (that code is called by other
classes in the package) as it is to ensure that this particular function produces the right
values within some known tolerance.
Please correct me if I'm wrong, but it seems that your patch uses values computed by the same
code it is supposed to check.
We should resort to that only when there is no better alternative, which is usually to compare
with the results of another ("reference") library.
For example, you could execute a slightly modified version of the code found [here|]
to get  independently computed values.

> No unit tests for "LanczosApproximation" class
> ----------------------------------------------
>                 Key: NUMBERS-38
>                 URL:
>             Project: Commons Numbers
>          Issue Type: Test
>            Reporter: Gilles
>              Labels: unit-test
>             Fix For: 1.0
> The computation of the {{LanczosApproximation}} (package {{o.a.c.numbers.gamma}} in module
{{commons-numbers-gamma}}) function is not checked by unit tests.

This message was sent by Atlassian JIRA

View raw message