Testsuite: remove obsolete conditionals for testing whether Octave version > 3.4

We now support Octave ≥ 4.2 only.

By the way, in another test, use the isoctave function instead of manual test.
time-shift
Sébastien Villemot 2019-11-19 15:25:59 +01:00
parent 9d99dafdd7
commit 628a8a6ff3
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 1 additions and 10 deletions

View File

@ -120,25 +120,16 @@ end;
conditional_forecast(parameter_set=prior_mode, controlled_varexo=(e_a,e_m));
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
plot_conditional_forecast(periods=10) gy_obs gp_obs;
end
conditional_forecast(parameter_set=posterior_mode, controlled_varexo=(e_a,e_m));
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
plot_conditional_forecast(periods=10) gy_obs gp_obs;
end
conditional_forecast(parameter_set=posterior_mean, controlled_varexo=(e_a,e_m));
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
plot_conditional_forecast(periods=10) gy_obs gp_obs;
end
conditional_forecast(parameter_set=posterior_median, controlled_varexo=(e_a,e_m));
if ~(exist('OCTAVE_VERSION') && octave_ver_less_than('3.4.0'))
plot_conditional_forecast(periods=10) gy_obs gp_obs;
end

View File

@ -86,7 +86,7 @@ if any(abs(t4(:))>1e-12)
error('Test failure:: Problem with the seed of the random number algorithm')
end
if ~exist('OCTAVE_VERSION') && ~matlab_ver_less_than('7.7')
if ~isoctave && ~matlab_ver_less_than('7.7')
set_dynare_seed('mlfg6331_64',0)
stoch_simul(periods=1000,irf=0,nomoments);