[Top][All Lists]

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

[Octave-bug-tracker] [bug #41332] assert should accept more than 3 argum

From: Clemens Buchacher
Subject: [Octave-bug-tracker] [bug #41332] assert should accept more than 3 arguments
Date: Fri, 24 Jan 2014 12:41:33 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0


                 Summary: assert should accept more than 3 arguments
                 Project: GNU Octave
            Submitted by: drizzd
            Submitted on: Fri 24 Jan 2014 12:41:32 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: Clemens Buchacher
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: Microsoft Windows



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

 -- 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 ();

* 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:


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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