Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
dynare
Commits
b0841b41
Verified
Commit
b0841b41
authored
6 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Fix test files following change in the preprocessor when there is no parameter or exogenous
parent
faa3185b
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
preprocessor
+1
-1
1 addition, 1 deletion
preprocessor
tests/on-the-fly/ex3.mod
+2
-2
2 additions, 2 deletions
tests/on-the-fly/ex3.mod
tests/on-the-fly/ex4.mod
+2
-2
2 additions, 2 deletions
tests/on-the-fly/ex4.mod
tests/on-the-fly/ex5.mod
+1
-1
1 addition, 1 deletion
tests/on-the-fly/ex5.mod
with
6 additions
and
6 deletions
preprocessor
@
84d57393
Compare
bf89cedd
...
84d57393
Subproject commit
bf89cedd88eef94b9e45ebf7a0a43574a1e4a16a
Subproject commit
84d57393dc3972f1c61be9f9047ecd517319a318
This diff is collapsed.
Click to expand it.
tests/on-the-fly/ex3.mod
+
2
−
2
View file @
b0841b41
...
@@ -31,7 +31,7 @@ if ~isequal(length(intersect(M_.endo_names, {'c'; 'y'; 'k'; 'b'; 'a'; 'h'})), 6)
...
@@ -31,7 +31,7 @@ if ~isequal(length(intersect(M_.endo_names, {'c'; 'y'; 'k'; 'b'; 'a'; 'h'})), 6)
error('Endogenous variables are wrong.')
error('Endogenous variables are wrong.')
end
end
if
isfield(M_, '
param_names
'
)
if
length(M_.
param_names)
> 0
error('Parameters are wrong.')
error('Parameters are wrong.')
end
end
...
...
This diff is collapsed.
Click to expand it.
tests/on-the-fly/ex4.mod
+
2
−
2
View file @
b0841b41
...
@@ -30,7 +30,7 @@ if ~isequal(length(intersect(M_.endo_names, {'c'; 'y'; 'k'; 'b'; 'a'})), 5)
...
@@ -30,7 +30,7 @@ if ~isequal(length(intersect(M_.endo_names, {'c'; 'y'; 'k'; 'b'; 'a'})), 5)
error('Endogenous variables are wrong.')
error('Endogenous variables are wrong.')
end
end
if
isfield(M_, '
param_names
'
)
if
length(M_.
param_names)
> 0
error('Parameters are wrong.')
error('Parameters are wrong.')
end
end
...
...
This diff is collapsed.
Click to expand it.
tests/on-the-fly/ex5.mod
+
1
−
1
View file @
b0841b41
...
@@ -31,6 +31,6 @@ if ~isequal(length(intersect(M_.endo_names, {'D'; 'S'; 'p'})), 3)
...
@@ -31,6 +31,6 @@ if ~isequal(length(intersect(M_.endo_names, {'D'; 'S'; 'p'})), 3)
error('Endogenous variables are wrong.')
error('Endogenous variables are wrong.')
end
end
if
isfield(M_, '
exo_names
'
)
if
length(M_.
exo_names)
> 0
error('Exogenous variables are wrong.')
error('Exogenous variables are wrong.')
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment