From 199b76c979ebfaf411d1dfbb4a8a61f1cc314265 Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Sun, 15 Dec 2019 17:17:10 +0100 Subject: [PATCH] also test fo empty list of variables to squeeze --- tests/shock_decomposition/ls2003_plot.mod | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/shock_decomposition/ls2003_plot.mod b/tests/shock_decomposition/ls2003_plot.mod index 88ec695b2..3ef63d277 100644 --- a/tests/shock_decomposition/ls2003_plot.mod +++ b/tests/shock_decomposition/ls2003_plot.mod @@ -83,10 +83,14 @@ A e_A; end; options_.initial_date=dates('1989Q4'); % date arbitrarily set for testing purposes -shock_decomposition(use_shock_groups=trade) y_obs R_obs pie_obs dq de; +shock_decomposition(nograph); +// test for nothing to squeeze +oo_ = squeeze_shock_decomp(M_,oo_,options_); // standard plot plot_shock_decomposition y_obs R_obs pie_obs dq de; +// grouped shocks +plot_shock_decomposition(use_shock_groups=trade) y_obs R_obs pie_obs dq de; // test datailed, custom name and yoy plots plot_shock_decomposition(detail_plot, fig_name = MR, type = yoy) y_obs R_obs pie_obs dq de;