-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
octave/matlab differences for methods(<class>)
#87
Comments
That's a good question. I believe the intuitive thing might be to just test those methods that are explicitly documented in the class definition (after all, this is At some point we might then want to add an explicit directive that tells doctest to test the overriding method with the overridden method's doctests (but let's do this when the problem arises). |
https://savannah.gnu.org/bugs/?func=detailitem&item_id=44390 However, it makes sense to only test methods that actually are overridden in the subclass and contain new test cases. |
I don't think we need this for a point release. I'll drop the milestone |
There are two slightly different things being discussed here:
|
Thanks for clarifying. Intuitively, I would expect that only doctests defined explicitly in files the local |
IMHO this |
How is that supposed to work? Is it only for classdef?
|
Aw, darn. Yeah, I guess it's only for classdef or traditional user-defined classes, not built-in types. I don't know if this is a deviation from Matlab behavior. |
|
You're doing it right. Looks like Octave’s Maybe doctest is stuck searching the path and doing its own class definition parsing if it wants to be thorough, and also not have the |
In Symbolic, I have a
@logical
dir which adds a single method (isAlways
) to the logical class.methods('logical')
gives all sorts of stuffabs, all, amd, any
, etc and including myisAlways
method.methods('logical')
gives justisAlways
.Maybe this is an upstream Octave bug.
But even in the Matlab case, should doctest then call doctest on all of these methods? Even those not defined in this 'project'? This is good for a user, but for package maintainer, I want to doctest my local stuff...
The text was updated successfully, but these errors were encountered: