diff options
author | Rafael Laboissière <rafael@debian.org> | 2021-08-24 06:44:25 -0300 |
---|---|---|
committer | Rafael Laboissière <rafael@debian.org> | 2021-08-24 06:44:25 -0300 |
commit | 16998761d5855720a1afd23f65a627cfc9dc3a0c (patch) | |
tree | b97b4739c8835e326ef8a34c4b7a87524a3f986f | |
parent | c3583e86c49184aec39046070ef9c0c0cfc726ae (diff) |
Transform some unit tests from %!test into %!xtest
Bug-Debian: https://bugs.debian.org/992528
Forwarded: no
Last-Update: 2021-08-24
For some unknown reason, some units tests in inst/str2angle.m started
to fail with the upgrade from bullseye to bookworm. In order to avoid
the blocking of the libgdal28→libgdal29 transition, we declare the
failing tests as xtest, for now.
For more context, see Bug#992528.
Gbp-Pq: Name str2angle-xtest.patch
-rw-r--r-- | inst/str2angle.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/inst/str2angle.m b/inst/str2angle.m index 4453a18..da9b2bb 100644 --- a/inst/str2angle.m +++ b/inst/str2angle.m @@ -124,7 +124,7 @@ function deg = str2angle (txt, verbose = 0) endfunction -%!test +%!xtest %!shared tst, res %! tst = '191E21''3.1"\n12e 22''33.24"\n13E 23'' 33.344"\n14w24'' 33.4444"\n'; %! tst = [tst '15S25''33.54444"\n16W26''33.644444''''\n17s27''33.7444444"\n']; @@ -138,15 +138,15 @@ endfunction %! 27.959, -28.976]; %! assert (str2angle (tst), res, 1e-3); -%!test +%!xtest %! tstc = strsplit (tst, "\n"); %! assert (str2angle (tstc), res, 1e-3); -%!test +%!xtest %! tstc = strjoin (strsplit (tst, "\n"), " "); %! assert (str2angle (tstc), res, 1e-3); -%!test +%!xtest %! assert (str2angle ('24E77''33" 25W43''57.7"'), [NaN, -25.7333], 1e-3); %!test |