Fix failing tests due to Octave checking for the matrix type in assert()
author |
thomas-weber |
date |
Wed, 13 Apr 2011 21:19:36 +0000 |
parents |
298c64d16989 |
children |
0bc627a2b5db |
files |
inst/imtophat.m src/bwlabel.cc |
diffstat |
2 files changed, 2 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/inst/imtophat.m
+++ b/inst/imtophat.m
@@ -56,7 +56,7 @@
%!test
%! I = [1 1 1; 1 1 1; 1 1 1;];
%! se = [1 1; 0 1;];
-%! result = imtophat(I, se);
+%! result = logical(imtophat(I, se));
%! expected = 0.5 < [0 0 1; 0 0 1; 1 1 1];
%! assert(expected, result);
--- a/src/bwlabel.cc
+++ b/src/bwlabel.cc
@@ -298,7 +298,7 @@
}
/*
-%!assert(bwlabel([0 1 0; 0 0 0; 1 0 1]),[0 1 0; 0 0 0; 2 0 3]);
+%!assert(bwlabel(logical([0 1 0; 0 0 0; 1 0 1])),[0 1 0; 0 0 0; 2 0 3]);
*/