[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31751] Tests don't work for object member fun
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #31751] Tests don't work for object member functions |
Date: |
Thu, 02 Dec 2010 14:43:02 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; de-de) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4 |
URL:
<http://savannah.gnu.org/bugs/?31751>
Summary: Tests don't work for object member functions
Project: GNU Octave
Submitted by: None
Submitted on: Do 02 Dez 2010 14:43:01 UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Alexander Klein
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.3
Operating System: Mac OS
_______________________________________________________
Details:
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
octave:2> addpath ("~/Desktop/Objects_fail_tests")
octave:3> Testfunc
warning: I can be tested with the below test
octave:4> test ("Testfunc" )
warning: The test works
PASSES 1 out of 1 tests
octave:5> Testclass
warning: I cannot be tested with the below test
octave:6> test ("Testclass")
????? Testclass does not exist in path
octave:7> cd ("~/Desktop/Objects_fail_tests")
octave:8> cd @Testclass
octave:9> test ("Testclass")
warning: The test works
PASSES 1 out of 1 tests
octave:10> cd
octave:11> file_in_loadpath ("Testfunc.m")
ans = /prog/Desktop/Objects_fail_tests/Testfunc.m
octave:12> file_in_loadpath ("Testclass.m")
ans = [](0x0)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Do 02 Dez 2010 14:43:01 UTC Name: Objects_fail_tests.tbz Size: 358B
By: None
Small testcase for the above transcript
<http://savannah.gnu.org/bugs/download.php?file_id=22092>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31751>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #31751] Tests don't work for object member functions,
anonymous <=