From d6677f66a476497ad0e71ecbc960db361e1570e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 20 Apr 2021 12:17:23 +0200
Subject: [PATCH] Testsuite: adapt histvalf_initvalf unit tests following
 previous commit

---
 tests/histval_initval_file_unit_tests.m | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/histval_initval_file_unit_tests.m b/tests/histval_initval_file_unit_tests.m
index c8cbd8e1b5..07b171e504 100644
--- a/tests/histval_initval_file_unit_tests.m
+++ b/tests/histval_initval_file_unit_tests.m
@@ -21,14 +21,14 @@ M.orig_maximum_lag = 2;
 caller = 'INITVAL';
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 ds1 = histvalf_initvalf(caller, M, options);
 
 failed_tests = my_assert(failed_tests, all(all(ds1 == ds)), 'basic test');
 num_tests = num_tests + 1;
 
 options = struct();
-options.series = ds;
+options.series = "ds1";
 options.first_obs = 2;
 ds1 = histvalf_initvalf(caller, M, options);
 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;
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 options.first_obs = 2;
 options.last_obs = 9;
 ds1 = histvalf_initvalf(caller, M, options);
@@ -47,7 +47,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
 num_tests = num_tests + 2;
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 options.last_obs = 9;
 ds1 = histvalf_initvalf(caller, M, options);
 failed_tests = my_assert(failed_tests, ds1.init == dates('1Y'), ...
@@ -57,7 +57,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
 num_tests = num_tests + 2;
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 options.first_obs = 2;
 options.last_obs = 9;
 options.nobs = 8;
@@ -69,7 +69,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
 num_tests = num_tests + 2;
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 options.last_obs = 9;
 options.nobs = 8;
 ds1 = histvalf_initvalf(caller, M, options);
@@ -80,7 +80,7 @@ failed_tests = my_assert(failed_tests, ds1.last == dates('9Y'), ...
 num_tests = num_tests + 2;
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 options.first_obs = 2;
 options.last_obs = 9;
 options.nobs = 7;
@@ -98,7 +98,7 @@ end
 num_tests = num_tests + 1;
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 options.first_obs = 0;
 
 try
@@ -113,7 +113,7 @@ end
 num_tests = num_tests + 1;
 
 options = struct();
-options.series = ds;
+options.series = "ds";
 options.last_obs = 11;
 
 try
-- 
GitLab