octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #46521] [octave forge] (communications) fails


From: anonymous
Subject: [Octave-bug-tracker] [bug #46521] [octave forge] (communications) fails to build with latest stable octave
Date: Fri, 16 Apr 2021 15:31:29 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #57, bug #46521 (project octave):

For the huffmandeco

assert #3 is the test with the warning.
fail #1 is the same code just verifying a warning is given.

To see this add two variables

%!test
%! dict = huffmandict (1:4, [0.5 0.25 0.15 0.10]);
%! hcode = huffmanenco (1:4, dict);


Now the assert and fail are this


%! assert (huffmandeco ([hcode 0], dict), [1:4 -1], 0)
%! fail ("huffmandeco  ([hcode 0], dict)", "warning")


Is there a better method to test and have an expected warning?



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?46521>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]