Workaround for Octave 4.0.

With Octave `which('dates')` returns nothing (Octave claims that `dates`
is a built in function).
parent a092f69a
......@@ -49,8 +49,8 @@ p = varargin{2};
%@test:1
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ try
%$ [o, p] = comparison_arg_checks(1);
......@@ -65,8 +65,8 @@ p = varargin{2};
%@test:2
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ try
%$ [o, p] = comparison_arg_checks('make', 'my', 'day');
......@@ -81,8 +81,8 @@ p = varargin{2};
%@test:3
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ try
%$ [o, p] = comparison_arg_checks('punk', dates('1950Q1'));
......@@ -97,8 +97,8 @@ p = varargin{2};
%@test:4
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ try
%$ [o, p] = comparison_arg_checks(dates('1950Q1'), 1);
......@@ -113,8 +113,8 @@ p = varargin{2};
%@test:5
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ try
%$ [o, p] = comparison_arg_checks(dates('1950Q1'), dates('1950M1'));
......@@ -129,8 +129,8 @@ p = varargin{2};
%@test:6
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ try
%$ [o, p] = comparison_arg_checks(dates('1950Q1'):dates('1950Q2'), dates('1950Q1'):dates('1950Q3'));
......@@ -145,8 +145,8 @@ p = varargin{2};
%@test:7
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ try
%$ [o, p] = comparison_arg_checks(dates('1950Q2'), dates('1950Q1'));
......
......@@ -49,8 +49,8 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%@test:1
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
......@@ -77,8 +77,8 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%@test:2
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
......@@ -105,8 +105,8 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%@test:3
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
......@@ -133,8 +133,8 @@ str = sprintf('%s%s>\n', str, date2string(o.time(o.length(),:),o.freq));
%@test:4
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$ addpath('../../../data/')
%$
%$ try
......
......@@ -31,8 +31,8 @@ end
%@test:1
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [2, 4];
%$ b = [1, 2];
......@@ -54,8 +54,8 @@ end
%@test:2
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [2, 2];
......@@ -77,8 +77,8 @@ end
%@test:3
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [1, 2];
......@@ -100,8 +100,8 @@ end
%@test:4
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 4];
......@@ -123,8 +123,8 @@ end
%@test:5
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 2];
......
......@@ -31,8 +31,8 @@ end
%@test:1
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [2, 4];
%$ b = [1, 2];
......@@ -54,8 +54,8 @@ end
%@test:2
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [2, 2];
......@@ -77,8 +77,8 @@ end
%@test:3
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [1, 2];
......@@ -100,8 +100,8 @@ end
%@test:4
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 4];
......@@ -123,8 +123,8 @@ end
%@test:5
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 2];
......
......@@ -31,8 +31,8 @@ end
%@test:1
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [2, 4];
%$ b = [1, 2];
......@@ -54,8 +54,8 @@ end
%@test:2
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [2, 2];
......@@ -77,8 +77,8 @@ end
%@test:3
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [1, 2];
......@@ -100,8 +100,8 @@ end
%@test:4
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 4];
......@@ -123,8 +123,8 @@ end
%@test:5
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 2];
......
......@@ -31,8 +31,8 @@ end
%@test:1
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [2, 4];
%$ b = [1, 2];
......@@ -54,8 +54,8 @@ end
%@test:2
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [2, 2];
......@@ -77,8 +77,8 @@ end
%@test:3
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 4];
%$ b = [1, 2];
......@@ -100,8 +100,8 @@ end
%@test:4
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 4];
......@@ -123,8 +123,8 @@ end
%@test:5
%$ OPATH = pwd();
%$ [DATES_PATH, junk1, junk2] = fileparts(which('dates'));
%$ cd([DATES_PATH '/private']);
%$ [DATES_PATH, junk1, junk2] = fileparts(which('initialize_dates_toolbox'));
%$ cd([DATES_PATH '/@dates/private']);
%$
%$ a = [1, 2];
%$ b = [1, 2];
......
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