clc; clear; close all;

%% Parameters
daten1 = dseries(1,'2024Q1','var1');
daten1_test = dseries(0,'2024Q1','var1');
%judge = struct();
%judge.daten =daten1;
judge = testClass(daten1);
%% Compile
dynare('testmod','nopreprocessoroutput','notime');


%% Tests

% %This doesnt work, should be zero, but isent
%Comment line 10, then it works
 judge.daten{'var1'}(dates('2024Q1')) = daten1_test;
 judge.daten{'var1'}(dates('2024Q1'))
% 
% %This works
% savejudge = judge.daten;
% savejudge{'var1'}(dates('2024Q1')) = daten1_test;
% judge.daten = savejudge;
% 
% judge.daten{'var1'}(dates('2024Q1'))


%The following also work

%judge.daten{'var1'} = daten1_test;
%judge.daten{'var1'}(dates('2024Q1'))
 
%judge.daten(dates('2024Q1')) = daten1_test;
%judge.daten(dates('2024Q1'))


