Debian Codegraph @

tests/heterogeneity/het_endo_lead_deep_xfail.mod

raw
1 // EXPECTEDFAIL Test: Heterogeneous endogenous with lead > 1 is not supported
2 //
3 // This test verifies that the preprocessor correctly rejects heterogeneous
4 // endogenous variables with leads greater than +1 in model(heterogeneity=...) blocks.
5 //
6 // Example: c(+2) where c is var(heterogeneity=households)
7 //
8 // Expected result: Preprocessor error with message about lead +2 not supported
9
10 heterogeneity_dimension households;
11
12 var(heterogeneity=households) c k;
13 varexo(heterogeneity=households) e;
14 var r;
15 parameters beta;
16
17 beta = 0.99;
18
19 model(heterogeneity=households);
20 k(-1) - c(+2); // ERROR: lead +2 not supported
21 k - e;
22 end;
23
24 model;
25 r - 0.04;
26 end;