From b0841b4136e38c26e44f898f09c3e3fc9ee30d71 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 30 Apr 2019 16:42:40 +0200
Subject: [PATCH] Fix test files following change in the preprocessor when
 there is no parameter or exogenous

---
 preprocessor             | 2 +-
 tests/on-the-fly/ex3.mod | 4 ++--
 tests/on-the-fly/ex4.mod | 4 ++--
 tests/on-the-fly/ex5.mod | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/preprocessor b/preprocessor
index bf89cedd88..84d57393dc 160000
--- a/preprocessor
+++ b/preprocessor
@@ -1 +1 @@
-Subproject commit bf89cedd88eef94b9e45ebf7a0a43574a1e4a16a
+Subproject commit 84d57393dc3972f1c61be9f9047ecd517319a318
diff --git a/tests/on-the-fly/ex3.mod b/tests/on-the-fly/ex3.mod
index d1f02a459e..d36affb658 100644
--- a/tests/on-the-fly/ex3.mod
+++ b/tests/on-the-fly/ex3.mod
@@ -31,10 +31,10 @@ if ~isequal(length(intersect(M_.endo_names, {'c'; 'y'; 'k'; 'b'; 'a'; 'h'})), 6)
    error('Endogenous variables are wrong.')
 end
 
-if isfield(M_, 'param_names')
+if length(M_.param_names) > 0
    error('Parameters are wrong.')
 end
 
 if ~isequal(length(intersect(M_.exo_names, {'e'; 'u'; 'theta'; 'psi'; 'alpha'; 'beta'; 'delta'; 'rho'; 'tau'})), 9)
    error('Exogenous variables are wrong.')
-end
\ No newline at end of file
+end
diff --git a/tests/on-the-fly/ex4.mod b/tests/on-the-fly/ex4.mod
index 601699e956..ccf90f9c1c 100644
--- a/tests/on-the-fly/ex4.mod
+++ b/tests/on-the-fly/ex4.mod
@@ -30,10 +30,10 @@ if ~isequal(length(intersect(M_.endo_names, {'c'; 'y'; 'k'; 'b'; 'a'})), 5)
    error('Endogenous variables are wrong.')
 end
 
-if isfield(M_, 'param_names')
+if length(M_.param_names) > 0
    error('Parameters are wrong.')
 end
 
 if ~isequal(length(intersect(M_.exo_names, {'e'; 'u'; 'h'; 'alpha'; 'beta'; 'delta'; 'rho'; 'tau'})), 8)
    error('Exogenous variables are wrong.')
-end
\ No newline at end of file
+end
diff --git a/tests/on-the-fly/ex5.mod b/tests/on-the-fly/ex5.mod
index 4129465a7f..7d28629b6e 100644
--- a/tests/on-the-fly/ex5.mod
+++ b/tests/on-the-fly/ex5.mod
@@ -31,6 +31,6 @@ if ~isequal(length(intersect(M_.endo_names, {'D'; 'S'; 'p'})), 3)
    error('Endogenous variables are wrong.')
 end
 
-if isfield(M_, 'exo_names')
+if length(M_.exo_names) > 0
    error('Exogenous variables are wrong.')
 end
-- 
GitLab