changeset 9705:93eb446b211e octave-forge

linkage: clear previous warnings before testing warnings on suite (may be a bug in octave)
author carandraug
date Wed, 14 Mar 2012 22:54:39 +0000
parents 1e7e27284c93
children 720649af740e
files main/statistics/inst/linkage.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/main/statistics/inst/linkage.m	Wed Mar 14 22:48:24 2012 +0000
+++ b/main/statistics/inst/linkage.m	Wed Mar 14 22:54:39 2012 +0000
@@ -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);