[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41756] assert wrongly returning no error
From: |
John Hunt |
Subject: |
[Octave-bug-tracker] [bug #41756] assert wrongly returning no error |
Date: |
Sun, 02 Mar 2014 20:15:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 |
URL:
<http://savannah.gnu.org/bugs/?41756>
Summary: assert wrongly returning no error
Project: GNU Octave
Submitted by: huntj
Submitted on: Sun 02 Mar 2014 08:15:39 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: 3.8.0
Operating System: GNU/Linux
_______________________________________________________
Details:
A weird behavior, probably due to a Ctrl-C during a long test,
and perhaps related to persistent variables in assert.
Can not be reproduced in a fresh octave session.
octave:232> assert(1, 2)
octave:233> OCTAVE_VERSION
ans = 3.8.0
octave:234> test assert
***** error <O(3x0)s+E(0x2)> assert (zeros (3,0), zeros (0,2))
!!!!! error failed.
Expected <O(3x0)s+E(0x2)> but got no error
octave:236> assert(false) # this one is OK
error: assert (false) failed
It seems that the error messages are evaluated, although not printed, since
when there are differences the elapsed time is longer.
octave:245> tic; assert(1:10000, (1:10000)+1); toc
Elapsed time is 13.1188 seconds.
octave:246> tic; assert(1:10000, (1:10000)); toc
Elapsed time is 0.0127668 seconds.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41756>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41756] assert wrongly returning no error,
John Hunt <=