Skip to content
Snippets Groups Projects
Verified Commit d6677f66 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Testsuite: adapt histvalf_initvalf unit tests following previous commit

parent 0cef7904
Branches
Tags
No related merge requests found
...@@ -21,14 +21,14 @@ M.orig_maximum_lag = 2; ...@@ -21,14 +21,14 @@ M.orig_maximum_lag = 2;
caller = 'INITVAL'; caller = 'INITVAL';
options = struct(); options = struct();
options.series = ds; options.series = "ds";
ds1 = histvalf_initvalf(caller, M, options); ds1 = histvalf_initvalf(caller, M, options);
failed_tests = my_assert(failed_tests, all(all(ds1 == ds)), 'basic test'); failed_tests = my_assert(failed_tests, all(all(ds1 == ds)), 'basic test');
num_tests = num_tests + 1; num_tests = num_tests + 1;
options = struct(); options = struct();
options.series = ds; options.series = "ds1";
options.first_obs = 2; options.first_obs = 2;
ds1 = histvalf_initvalf(caller, M, options); ds1 = histvalf_initvalf(caller, M, options);
failed_tests = my_assert(failed_tests, ds1.init == dates('2Y'), ... failed_tests = my_assert(failed_tests, ds1.init == dates('2Y'), ...
...@@ -36,7 +36,7 @@ failed_tests = my_assert(failed_tests, ds1.init == dates('2Y'), ... ...@@ -36,7 +36,7 @@ failed_tests = my_assert(failed_tests, ds1.init == dates('2Y'), ...
num_tests = num_tests + 1; num_tests = num_tests + 1;
options = struct(); options = struct();
options.series = ds; options.series = "ds";
options.first_obs = 2; options.first_obs = 2;
options.last_obs = 9; options.last_obs = 9;
ds1 = histvalf_initvalf(caller, M, options); ds1 = histvalf_initvalf(caller, M, options);
...@@ -47,7 +47,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ... ...@@ -47,7 +47,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
num_tests = num_tests + 2; num_tests = num_tests + 2;
options = struct(); options = struct();
options.series = ds; options.series = "ds";
options.last_obs = 9; options.last_obs = 9;
ds1 = histvalf_initvalf(caller, M, options); ds1 = histvalf_initvalf(caller, M, options);
failed_tests = my_assert(failed_tests, ds1.init == dates('1Y'), ... failed_tests = my_assert(failed_tests, ds1.init == dates('1Y'), ...
...@@ -57,7 +57,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ... ...@@ -57,7 +57,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
num_tests = num_tests + 2; num_tests = num_tests + 2;
options = struct(); options = struct();
options.series = ds; options.series = "ds";
options.first_obs = 2; options.first_obs = 2;
options.last_obs = 9; options.last_obs = 9;
options.nobs = 8; options.nobs = 8;
...@@ -69,7 +69,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ... ...@@ -69,7 +69,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
num_tests = num_tests + 2; num_tests = num_tests + 2;
options = struct(); options = struct();
options.series = ds; options.series = "ds";
options.last_obs = 9; options.last_obs = 9;
options.nobs = 8; options.nobs = 8;
ds1 = histvalf_initvalf(caller, M, options); ds1 = histvalf_initvalf(caller, M, options);
...@@ -80,7 +80,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ... ...@@ -80,7 +80,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
num_tests = num_tests + 2; num_tests = num_tests + 2;
options = struct(); options = struct();
options.series = ds; options.series = "ds";
options.first_obs = 2; options.first_obs = 2;
options.last_obs = 9; options.last_obs = 9;
options.nobs = 7; options.nobs = 7;
...@@ -98,7 +98,7 @@ end ...@@ -98,7 +98,7 @@ end
num_tests = num_tests + 1; num_tests = num_tests + 1;
options = struct(); options = struct();
options.series = ds; options.series = "ds";
options.first_obs = 0; options.first_obs = 0;
try try
...@@ -113,7 +113,7 @@ end ...@@ -113,7 +113,7 @@ end
num_tests = num_tests + 1; num_tests = num_tests + 1;
options = struct(); options = struct();
options.series = ds; options.series = "ds";
options.last_obs = 11; options.last_obs = 11;
try try
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment