function OK = meris_name2meta_test

F  = meris_directory(fileparts(mfilename('fullpath')));

%check inquire output
D0 = meris_name2meta;

% check one
D1a = meris_name2meta(F{1});
D1b = meris_name2meta(F{1},'start_time');
D1c = meris_name2meta(F{1},'datenum');

% check vectorized
Dna = meris_name2meta(F);
Dnb = meris_name2meta(F,'start_time');
Dnc = meris_name2meta(F,'datenum');

OK = [];

OK(end+1)=isstruct (D0);

OK(end+1)=isstruct (D1a);
OK(end+1)=isequal  (D1b,'235959');
OK(end+1)=isequal  (D1c,datenum(1999,12,31,23,59,59));

OK(end+1)=isstruct (Dna);
OK(end+1)=isequal  (Dnb,{ '235959','235959'});
OK(end+1)=isequal  (Dnc,datenum([1999 2011],12,31,23,59,59));

OK = all(OK);