bugGNU Octave - Bugs: bug #41332, assert should accept more than 3...

 
 

bug #41332: assert should accept more than 3 arguments

Submitted by:  Clemens Buchacher <drizzd>
Submitted on:  Fri 24 Jan 2014 12:41:32 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Clemens BuchacherOpen/Closed: Closed
Release: 3.8.0Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 24 Jan 2014 06:15:50 PM UTC, comment #1:

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/7994d3ce6e8e). This will be a part of the upcoming 3.8.1 bug fix release.

Rik <rik5>
Project Administrator
Fri 24 Jan 2014 12:41:32 PM UTC, original submission:

For the following documented usages, Octave should allow more than 3 arguments:

-- Function File: assert (COND, ERRMSG, ...)
-- Function File: assert (COND, MSG_ID, ERRMSG, ...)

But in 3.8.0 it does not any more:

function assert (cond, varargin)

if (nargin == 0 || nargin > 3)
print_usage ();
endif

  • Expected output (Octave 3.6.4):

octave:1> assert(false, '%s%s', 'a', 'b')
error: ab
error: called from:
error: C:\Octave\Octave3.6.4_gcc4.6.2\share\octave\3.6.4\m\testfun\assert.m at line 74, column 9

  • Actual output (Octave 3.8.0):

>> assert(false, '%s%s', 'a', 'b')

error: Invalid call to assert. Correct usage is:
[...]

Clemens Buchacher <drizzd>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by drizzd (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 24 Jan 2014 06:15:50 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1