[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44793] assert([]) is valid
From: |
John Donoghue |
Subject: |
[Octave-bug-tracker] [bug #44793] assert([]) is valid |
Date: |
Thu, 09 Apr 2015 16:07:00 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
URL:
<http://savannah.gnu.org/bugs/?44793>
Summary: assert([]) is valid
Project: GNU Octave
Submitted by: lostbard
Submitted on: Thu 09 Apr 2015 04:06:59 PM GMT
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: JohnD
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
Is assert([]) valid?
Matlab doesn't allow it with an error about expecting an scalar logical.
I noticed this when looking at some of the uimenu tests where the result of
ishghandle() is used.
It maybe that the real issue here is the test:
hf = figure
uif = findall (hf, "label", "&file1"); % returns empty as no match
assert(ishghandle(uif)) % doesn't complain as ishghandle will correctly return
empty array
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44793>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44793] assert([]) is valid,
John Donoghue <=