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));
%$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
%$ toto = dates();
......@@ -62,7 +61,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ if t(1)
%$ test_dates4display;
%$ expected_str_1 = sprintf('toto is an empty dates object.\\n');
%$ try
%$ t(2) = dassert(str, expected_str_1);
%$ catch
......@@ -71,7 +70,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH);
%@eof:1
......@@ -79,7 +77,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
%$ toto = dates('1950Q1'):dates('1950Q2');
......@@ -90,7 +87,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ if t(1)
%$ test_dates4display;
%$ expected_str_2 = sprintf('toto = <dates: 1950Q1, 1950Q2>\\n');
%$ try
%$ t(2) = dassert(str, expected_str_2);
%$ catch
......@@ -99,7 +96,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH);
%@eof:2
......@@ -107,7 +103,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
%$ toto = dates('1950Q1'):dates('1951Q1');
......@@ -118,7 +113,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ if t(1)
%$ test_dates4display;
%$ expected_str_3 = sprintf('toto = <dates: 1950Q1, 1950Q2, ..., 1950Q4, 1951Q1>\\n');
%$ try
%$ t(2) = dassert(str, expected_str_3);
%$ catch
......@@ -127,7 +122,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH);
%@eof:3
......@@ -135,7 +129,6 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ OPATH = pwd();
%$ DSERIES_PATH = strrep(which('dseries.initialize'),'/+dseries/initialize.m','');
%$ cd([DSERIES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
%$ toto = dates('1950Q1'):dates('1951Q1');
......@@ -146,7 +139,7 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ if t(1)
%$ test_dates4display;
%$ expected_str_4 = sprintf('toto = <dates: 1950Q1, 1950Q2, 1950Q3, 1950Q4, 1951Q1>\\n');
%$ try
%$ t(2) = dassert(str, expected_str_4);
%$ catch
......@@ -155,6 +148,5 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%$ end
%$
%$ T = all(t);
%$ rmpath('../../../data/')
%$ cd(OPATH);
%@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