Mercurial > hg > octave-nkf
changeset 16049:ebd2259c5df1 classdef
Fix classdef tests.
* test/classdef/foo_method_changes_property_size.m: Use correct
constructor name.
* test/classdef/test_classdef.m: Likewise.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Mon, 11 Feb 2013 15:24:56 -0500 |
parents | 10142aad4b9f |
children | fc3cb570ac46 |
files | test/classdef/foo_method_changes_property_size.m test/classdef/test_classdef.m |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/test/classdef/foo_method_changes_property_size.m +++ b/test/classdef/foo_method_changes_property_size.m @@ -3,11 +3,11 @@ element; end methods - function obj = foo_method_changes_property (n) + function obj = foo_method_changes_property_size (n) obj.element = 1:n; end function obj = move_element_to_end (obj, n) - obj.element(end+1) = obj.element(n);; + obj.element(end+1) = obj.element(n); obj.element(n) = []; end end
--- a/test/classdef/test_classdef.m +++ b/test/classdef/test_classdef.m @@ -68,6 +68,6 @@ %! assert (obj.sine (0.1), sin (2 * pi * 10 * 0.1), eps ()) %!xtest -%! obj = foo_method_changes_property (3); +%! obj = foo_method_changes_property_size (3); %! obj = obj.move_element_to_end (2); %! assert (obj.element, [1 3 2])