diff options
-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 |