Mercurial > octave
changeset 22470:9d4cb0cf9cd2
maint: tag xtests and tests that fail on some systems with bug numbers
* conv2.cc, num2str.m, isosurface.m, residue.m, classdef.tst: Convert some
xtests to tests with bug numbers.
* sparse-xpow.cc, realpow.m, lscov.m: Add bug numbers to tests that fail on
some systems.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Sun, 11 Sep 2016 21:08:56 -0700 |
parents | 8e1462b17969 |
children | 667d353d1ab8 |
files | libinterp/corefcn/conv2.cc libinterp/corefcn/sparse-xpow.cc scripts/general/num2str.m scripts/plot/draw/isosurface.m scripts/polynomial/residue.m scripts/specfun/realpow.m scripts/statistics/base/lscov.m test/classdef/classdef.tst |
diffstat | 8 files changed, 13 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/conv2.cc Sun Sep 11 16:41:35 2016 -0700 +++ b/libinterp/corefcn/conv2.cc Sun Sep 11 21:08:56 2016 -0700 @@ -393,14 +393,14 @@ ## The terms in the convolution added in reverse order compared ## to the "full" option. This produces differences on the order ## of tens of eps. This should be fixed, but in the meantime -## the tests will be marked as xtests. +## the tests will be marked as known failures. %!shared a, b, c %! ## test 3D by 3D %! a = rand (10, 10, 10); %! b = rand (3, 3, 3); %! c = convn (a, b, "full"); %!assert (convn (a, b, "same"), c(2:11,2:11,2:11)) -%!xtest +%!test <39314> %! assert (convn (a, b, "valid"), c(3:10,3:10,3:10)); %! %!test @@ -409,7 +409,7 @@ %! b = rand (3, 3); %! c = convn (a, b, "full"); %!assert (convn (a, b, "same"), c(2:11,2:11,:)) -%!xtest +%!test <39314> %! assert (convn (a, b, "valid"), c(3:10,3:10,:)); %! %!test @@ -426,7 +426,7 @@ %! b = rand (4, 3, 2, 3); %! c = convn (a, b, "full"); %!assert (convn (a, b, "same"), c(3:12,2:16,2:8,2:9,:)) -%!xtest +%!test <39314> %! assert (convn (a, b, "valid"), c(4:10,3:15,2:7,3:8,:)); %!test
--- a/libinterp/corefcn/sparse-xpow.cc Sun Sep 11 16:41:35 2016 -0700 +++ b/libinterp/corefcn/sparse-xpow.cc Sun Sep 11 21:08:56 2016 -0700 @@ -239,7 +239,7 @@ /* %!assert (sparse (2) .^ [3, 4], sparse ([8, 16])) -%!assert (sparse (2i) .^ [3, 4], sparse ([-0-8i, 16])) +%!assert <47775> (sparse (2i) .^ [3, 4], sparse ([-0-8i, 16])) */ // -*- 1 -*-
--- a/scripts/general/num2str.m Sun Sep 11 16:41:35 2016 -0700 +++ b/scripts/general/num2str.m Sun Sep 11 21:08:56 2016 -0700 @@ -116,7 +116,7 @@ ndgt = max (ndgt, 5); # Allow space for Inf/NaN endif ## FIXME: Integers should be masked to show only 16 significant digits - ## See %!xtest with 1e23 below. + ## See test case for bug #36133 below fmt = sprintf ("%%%d.0f", ndgt); endif else @@ -161,7 +161,7 @@ ## Integer input ndgt += 3; ## FIXME: Integers should be masked to show only 16 significant digits - ## See %!xtest below + ## See test case for bug #36133 below fmt = sprintf ("%%%d.0f%%-+%d.0fi", ndgt, ndgt); endif endif @@ -243,7 +243,7 @@ ## FIXME: Integers greater than flintmax() - 1 should be masked to show just ## 16 digits of precision. -%!xtest +%!test <36133> %! assert (num2str (1e23), "100000000000000000000000"); ## Test for bug #44864, extra rows generated from newlines in format
--- a/scripts/plot/draw/isosurface.m Sun Sep 11 16:41:35 2016 -0700 +++ b/scripts/plot/draw/isosurface.m Sun Sep 11 21:08:56 2016 -0700 @@ -585,6 +585,6 @@ ## test for __calc_isovalue_from_data__ ## FIXME: private function cannot be tested, unless bug #38776 is resolved. -%!xtest +%!test <38776> %! assert (__calc_isovalue_from_data__ (1:5), 3.02);
--- a/scripts/polynomial/residue.m Sun Sep 11 16:41:35 2016 -0700 +++ b/scripts/polynomial/residue.m Sun Sep 11 21:08:56 2016 -0700 @@ -416,7 +416,7 @@ %! assert (ar, a, 1e-12); ## The following test is due to Bernard Grung (bug #34266) -%!xtest +%!test <34266> %! z1 = 7.0372976777e6; %! p1 = -3.1415926536e9; %! p2 = -4.9964813512e8;
--- a/scripts/specfun/realpow.m Sun Sep 11 16:41:35 2016 -0700 +++ b/scripts/specfun/realpow.m Sun Sep 11 21:08:56 2016 -0700 @@ -45,7 +45,7 @@ %! x = rand (10, 10); %! y = randn (10, 10); %! assert (x.^y, realpow (x,y)); -%!assert (realpow (1i,2), -1) +%!assert <47775> (realpow (1i,2), -1) %!error realpow () %!error realpow (1)
--- a/scripts/statistics/base/lscov.m Sun Sep 11 16:41:35 2016 -0700 +++ b/scripts/statistics/base/lscov.m Sun Sep 11 21:08:56 2016 -0700 @@ -115,7 +115,7 @@ endfunction -%!test +%!test <49040> %! ## Longley data from the NIST Statistical Reference Dataset %! Z = [ 60323 83.0 234289 2356 1590 107608 1947 %! 61122 88.5 259426 2325 1456 108632 1948
--- a/test/classdef/classdef.tst Sun Sep 11 16:41:35 2016 -0700 +++ b/test/classdef/classdef.tst Sun Sep 11 21:08:56 2016 -0700 @@ -50,7 +50,7 @@ %!assert (amount (p), amt, eps ()) %!xtest %! assert (properties (p), {'rate'; 'term'; 'principle'}); -%!xtest +%!test <42510> %! assert (methods (p), {'amount'; 'foo_value_class'}); %!assert (isempty (foo_value_class().rate)) %!error <property `rate' is not constant> foo_value_class.rate