bugGNU Octave - Bugs: bug #37592, calling test on a builtin shows a...

 
 

bug #37592: calling test on a builtin shows a misleading error message

Submitter:  Mike Miller <mtmiller>
Submitted:  Thu 18 Oct 2012 12:52:49 AM UTC
   
 
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  mtmiller
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Dec 2012 11:30:51 PM UTC, comment #1: 
Mike Miller <mtmiller>
Group Member
Thu 18 Oct 2012 12:52:49 AM UTC, original submission:  

The error message in the test function could be more helpful when calling it on a builtin:


octave:1> test besselj
????? besselj does not exist in path
octave:2> test svd
????? svd does not exist in path
octave:3> test urlread
????? urlread source code with tests for dynamically linked function not found


It would be clearer if test reported that besselj and svd are builtins, similar to the error message shown for urlread as a compiled file in the path.

For that matter, it could report builtins, operators, and keywords the same way that the type command does.

I'll fix this if no one beats me to it.

Mike Miller <mtmiller>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-12-09 mtmiller StatusNone Fixed
        Assigned toNone mtmiller
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code