Mercurial > hgweb > octave
changeset 32642:9e411598e820 stable
erfc: Mark test as known issue with the UCRT on Windows (bug #65075).
* mappers.cc (erfc): Duplicate test to be able to mark it as a known failure
with the UCRT on Windows.
| author | Markus Mützel <markus.muetzel@gmx.de> |
|---|---|
| date | Fri, 22 Dec 2023 22:57:20 +0100 |
| parents | 47432ada7e23 |
| children | f75f2abe189c |
| files | libinterp/corefcn/mappers.cc |
| diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/mappers.cc +++ b/libinterp/corefcn/mappers.cc @@ -786,8 +786,14 @@ ## backward - loss of accuracy %!assert (erfcinv (erfc ([-3 -1 -0.4 0.7 1.3 2.8])), %! [-3 -1 -0.4 0.7 1.3 2.8], -1e-12) -%!assert (erfcinv (erfc (single ([-3 -1 -0.4 0.7 1.3 2.8]))), -%! single ([-3 -1 -0.4 0.7 1.3 2.8]), -1e-4) +%!testif ; ! ispc () +%! assert (erfcinv (erfc (single ([-3 -1 -0.4 0.7 1.3 2.8]))), +%! single ([-3 -1 -0.4 0.7 1.3 2.8]), -1e-4) +%!testif ; ispc () <65075> +%! ## Same test code as above, but intended for test statistics with the UCRT. +%! ## The deviations are twice as high with it. +%! assert (erfcinv (erfc (single ([-3 -1 -0.4 0.7 1.3 2.8]))), +%! single ([-3 -1 -0.4 0.7 1.3 2.8]), -1e-4) ## exceptional %!assert (erfcinv ([2, 0, -0.1, 2.1]), [-Inf, Inf, NaN, NaN]) %!error erfcinv (1+2i)
