Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sébastien Villemot
dseries
Commits
44c38fe4
Commit
44c38fe4
authored
Jul 09, 2015
by
Stéphane Adjemian
Browse files
Added unit test.
parent
ee49426f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@dseries/rename.m
View file @
44c38fe4
...
...
@@ -88,3 +88,20 @@ ts.name(idname) = {new};
%$
%$ T = all(t);
%@eof:2
%@test:3
%$ t = zeros(2,1);
%$ ts = dseries(randn(10,1));
%$ try
%$ ts = ts.rename('Dora');
%$ t(1) = 1;
%$ catch
%$ t = 0;
%$ end
%$
%$ if length(t)>1
%$ t(2) = dassert(ts.name,{'Dora'});
%$ end
%$
%$ T = all(t);
%@eof:3
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment