bugGNU Octave - Bugs: bug #31751, Tests don't work for object member...

 
 

bug #31751: Tests don't work for object member functions

Submitted by:  None
Submitted on:  Thu 02 Dec 2010 02:43:01 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Alexander KleinOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.3
Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 12 Dec 2010 05:43:30 AM UTC, comment #2:

With the current development version of Octave, you can run tests that are defined in class constructors or methods using

test @classname/methodname

so I consider this bug to be fixed and am closing this report.

John W. Eaton <jwe>
Project Administrator
Fri 03 Dec 2010 04:09:32 PM UTC, comment #1:

Hello,
everything under a directory whose name starts with '@' is private, and only allowed to be used inside class members. So, if you want to define a test case the directory layout has to be

@testclass/testclass.m <= the class constructor
@testclass/subsref.m <= an overloaded method for the object
testclass <= a script with the tests

the script defining the test must be put one layer above the class definition.

Regards

Pascal Dupuis <cdemills>
Project Member
Thu 02 Dec 2010 02:43:01 PM UTC, original submission:

Hi,

while writing some classes, I noticed that testcases for class member functions can't be run, because test() can't find them via file_in_loadpath().

See below for details.

Kind regards,

Alex

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #22092:  Objects_fail_tests.tbz added by None (358B - application/octet-stream - Small testcase for the above transcript)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by cdemills (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 12 Dec 2010 05:43:30 AM UTCjweStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 02 Dec 2010 02:43:01 PM UTCNoneAttached File-=>Added Objects_fail_tests.tbz, #22092

    Back to the top


    Powered by Savane 3.1-cleanup1