On Tue, Dec 29, 2009 at 01:07:20PM +0100, Søren Hauberg wrote:
> tir, 29 12 2009 kl. 10:57 +0100, skrev Thomas Weber:
> > > > Should I interpret the total silence on this to be a sign that
> > > > a) I'm the only one seeing this test failure?
> > >
> > > No I see it as well.
> > >
> > > > b) nobody actually cares about the image package?
> > >
> > > I do care, I just didn't see your message. Don't know how it slipped
> > > beneath my radar, though...
> > >
> > > The test don't fail for me if I run the code directly in the prompt, so
> > > I think this is a bug in Octave itself. I'll see if I can come up with a
> > > test case, and then I'll send a bug report to Octave.
> >
> > Thanks a lot. I also thought this to be a change in Octave, but I wanted
> > some confirmation before asking there.
>
> This seems to be related to the use of spaces in %!test blocks. I'm not
> sure if this is a bug or a feature, so I've asked a question at the bug
> list.
>
> As to the actual problem, then I checked in a simplification of the
> test, that passes for me. Could you check that it also passes for you?
Sorry it took me so long to respond, but the changed test fails for me.
I had to remove some "@" in the tests, see the attached diff.
Thomas
Index: qtdecomp.m
===================================================================
--- qtdecomp.m (Revision 6783)
+++ qtdecomp.m (Arbeitskopie)
@@ -275,9 +275,9 @@
%!test
%! f = @(A, c1 = 54, c2 = 0, c3 = 0) y = (A (1, 1, :) != ((c1+c2+c3) * ones (1, 1, size (A, 3))))(:);
%!
-%! assert(full(qtdecomp(A,@f)),[ones(4),B4;ones(4,8)]);
-%! assert(full(qtdecomp(A,@f,54)),[ones(4),B4;ones(4,8)]);
-%! assert(full(qtdecomp(A,@f,4,40,10)),[ones(4),B4;ones(4,8)]);
+%! assert(full(qtdecomp(A,f)),[ones(4),B4;ones(4,8)]);
+%! assert(full(qtdecomp(A,f,54)),[ones(4),B4;ones(4,8)]);
+%! assert(full(qtdecomp(A,f,4,40,10)),[ones(4),B4;ones(4,8)]);
%!test
%!# no params
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev