From: <car...@us...> - 2012-03-14 22:54:45
|
Revision: 9891 http://octave.svn.sourceforge.net/octave/?rev=9891&view=rev Author: carandraug Date: 2012-03-14 22:54:39 +0000 (Wed, 14 Mar 2012) Log Message: ----------- linkage: clear previous warnings before testing warnings on suite (may be a bug in octave) Modified Paths: -------------- trunk/octave-forge/main/statistics/inst/linkage.m Modified: trunk/octave-forge/main/statistics/inst/linkage.m =================================================================== --- trunk/octave-forge/main/statistics/inst/linkage.m 2012-03-14 22:48:24 UTC (rev 9890) +++ trunk/octave-forge/main/statistics/inst/linkage.m 2012-03-14 22:54:39 UTC (rev 9891) @@ -217,6 +217,7 @@ %!assert (cond (linkage (pdist (x), "complete")), 21.793345,t); %!assert (cond (linkage (pdist (x), "average")), 27.045012,t); %!assert (cond (linkage (pdist (x), "weighted")), 27.412889,t); +%! lastwarn(); # Clear last warning before the test %!warning <monotonically> linkage (pdist (x), "centroid"); %!test warning off clustering %! assert (cond (linkage (pdist (x), "centroid")), 27.457477,t); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |