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

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

[Octave-bug-tracker] [bug #42150] [N, MAX] = test(...) always returns [0


From: Colin Macdonald
Subject: [Octave-bug-tracker] [bug #42150] [N, MAX] = test(...) always returns [0, 0] if a test fails
Date: Sun, 20 Apr 2014 15:02:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

URL:
  <http://savannah.gnu.org/bugs/?42150>

                 Summary: [N,MAX] = test(...) always returns [0,0] if a test
fails
                 Project: GNU Octave
            Submitted by: cbm
            Submitted on: Sun 20 Apr 2014 03:02:07 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

doc text sounds like it should be number passed and total number, unless I
misunderstand?

Testing on 3.6.4, 3.8.1 and recent hg (yesterday-ish).

minimal examples attached.



octave:4> test_return_works
N =  2
M =  2
octave:5> 
octave:5> 
octave:5> test_return_bug
  ***** assert(false)
!!!!! test failed
assert (false) failed
N = 0
M = 0
octave:6> 




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 20 Apr 2014 03:02:07 PM GMT  Name: test_return_works.m  Size: 65B  
By: cbm

<http://savannah.gnu.org/bugs/download.php?file_id=31217>
-------------------------------------------------------
Date: Sun 20 Apr 2014 03:02:07 PM GMT  Name: test_return_bug.m  Size: 64B  
By: cbm

<http://savannah.gnu.org/bugs/download.php?file_id=31218>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42150>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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