Verified Commit 85ac9e79 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Removed data file for unit tests (@dates/private).

parent f0a18744
expected_str_1 = sprintf('toto is an empty dates object.\n');
expected_str_2 = sprintf('toto = <dates: 1950Q1, 1950Q2>\n');
expected_str_3 = sprintf('toto = <dates: 1950Q1, 1950Q2, ..., 1950Q4, 1951Q1>\n');
expected_str_4 = sprintf('toto = <dates: 1950Q1, 1950Q2, 1950Q3, 1950Q4, 1951Q1>\n');
...@@ -51,7 +51,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -51,7 +51,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ OPATH = pwd(); %$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m',''); %$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']); %$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$ %$
%$ try %$ try
%$ toto = dates(); %$ toto = dates();
...@@ -62,7 +61,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -62,7 +61,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ if t(1) %$ if t(1)
%$ test_dates4display; %$ expected_str_1 = sprintf('toto is an empty dates object.\\n');
%$ try %$ try
%$ t(2) = dassert(str, expected_str_1); %$ t(2) = dassert(str, expected_str_1);
%$ catch %$ catch
...@@ -71,7 +70,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -71,7 +70,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ T = all(t); %$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH); %$ cd(OPATH);
%@eof:1 %@eof:1
...@@ -79,7 +77,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -79,7 +77,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ OPATH = pwd(); %$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m',''); %$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']); %$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$ %$
%$ try %$ try
%$ toto = dates('1950Q1'):dates('1950Q2'); %$ toto = dates('1950Q1'):dates('1950Q2');
...@@ -90,7 +87,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -90,7 +87,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ if t(1) %$ if t(1)
%$ test_dates4display; %$ expected_str_2 = sprintf('toto = <dates: 1950Q1, 1950Q2>\\n');
%$ try %$ try
%$ t(2) = dassert(str, expected_str_2); %$ t(2) = dassert(str, expected_str_2);
%$ catch %$ catch
...@@ -99,7 +96,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -99,7 +96,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ T = all(t); %$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH); %$ cd(OPATH);
%@eof:2 %@eof:2
...@@ -107,7 +103,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -107,7 +103,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ OPATH = pwd(); %$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m',''); %$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']); %$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$ %$
%$ try %$ try
%$ toto = dates('1950Q1'):dates('1951Q1'); %$ toto = dates('1950Q1'):dates('1951Q1');
...@@ -118,7 +113,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -118,7 +113,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ if t(1) %$ if t(1)
%$ test_dates4display; %$ expected_str_3 = sprintf('toto = <dates: 1950Q1, 1950Q2, ..., 1950Q4, 1951Q1>\\n');
%$ try %$ try
%$ t(2) = dassert(str, expected_str_3); %$ t(2) = dassert(str, expected_str_3);
%$ catch %$ catch
...@@ -127,7 +122,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -127,7 +122,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ T = all(t); %$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH); %$ cd(OPATH);
%@eof:3 %@eof:3
...@@ -135,7 +129,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -135,7 +129,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ OPATH = pwd(); %$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m',''); %$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']); %$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$ %$
%$ try %$ try
%$ toto = dates('1950Q1'):dates('1951Q1'); %$ toto = dates('1950Q1'):dates('1951Q1');
...@@ -146,7 +139,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -146,7 +139,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ if t(1) %$ if t(1)
%$ test_dates4display; %$ expected_str_4 = sprintf('toto = <dates: 1950Q1, 1950Q2, 1950Q3, 1950Q4, 1951Q1>\\n');
%$ try %$ try
%$ t(2) = dassert(str, expected_str_4); %$ t(2) = dassert(str, expected_str_4);
%$ catch %$ catch
...@@ -155,6 +148,5 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq)); ...@@ -155,6 +148,5 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end %$ end
%$ %$
%$ T = all(t); %$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH); %$ cd(OPATH);
%@eof:4 %@eof:4
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment