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

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

[Octave-bug-tracker] [bug #38495] remainder of test discarded after %!en


From: John Hunt
Subject: [Octave-bug-tracker] [bug #38495] remainder of test discarded after %!endfunction
Date: Sun, 10 Mar 2013 13:45:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0

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

                 Summary: remainder of test discarded after %!endfunction
                 Project: GNU Octave
            Submitted by: huntj
            Submitted on: Sun 10 Mar 2013 01:45:56 PM GMT
                Category: Interpreter
                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:

testing test_test.m (attached)

The first test ought to fail,
but we get an incorrect "PASSED".

The second is fine,

Besides, according to the manual, it seems that
the third should fail, with "fn" undefined, since the test does not belong to
the same block ?

Instead of that, all 3 tests passed :

  ***** test
  ***** function x = fn(z)
  x = z;
  ***** endfunction
 assert(0, 1)
  ***** function x = fn(z)
  x = z;
  ***** endfunction
  ***** test
 assert(fn(1), 1)
  ***** test
 assert(fn(2), 2)
PASSES 3 out of 3 tests


It happens under 3.6.3, 3.6.4 and dev
hg id
2a81ce01c383 tip




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 10 Mar 2013 01:45:56 PM GMT  Name: test_test.m  Size: 218B   By:
huntj

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

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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