From c17728da8358d580be5d89a61828abcfbef6d94b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Ry=C3=BBk=29?=
 <stepan@adjemian.eu>
Date: Thu, 12 May 2022 13:02:41 +0200
Subject: [PATCH] Make sure matlab routine is used in first unit test.

---
 .../local_state_space_iteration_2.m                           | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m b/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m
index 23e8a9fe9..28c30f3f3 100644
--- a/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m
+++ b/matlab/missing/mex/local_state_space_iterations/local_state_space_iteration_2.m
@@ -93,13 +93,13 @@ ghuu = rand(n,q*q);
 ghxu = rand(n,n*q);
 yhat_ = zeros(n,1);
 ss = ones(n,1);
-
+addpath(sprintf('%s/missing/mex/local_state_space_iterations', fileparts(which('dynare'))))
 % Call the tested routine.
 for i=1:10
     y1 = local_state_space_iteration_2(yhat,epsilon,ghx,ghu,constant,ghxx,ghuu,ghxu,1);
     [y2,y2_] = local_state_space_iteration_2(yhat,epsilon,ghx,ghu,constant,ghxx,ghuu,ghxu,yhat_,ss,1);
 end
-
+rmpath(sprintf('%s/missing/mex/local_state_space_iterations', fileparts(which('dynare'))))
 % Check the results.
 t(1) = dassert(y1,ones(n,1));
 t(2) = dassert(y2,ones(n,1));
-- 
GitLab