function datenum_values_test ( )

%*****************************************************************************80
%
%% datenum_values_test() tests datenum_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 December 2017
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'datenum_values_test():\n' );
  fprintf ( 1, '  datenum_values() stores values of\n' );
  fprintf ( 1, '  the MATLAB DATENUM for a given Y/M/D date.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     Y     M     D     Date_Num\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, y, m, d, date_num ] = datenum_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %4d  %4d  %4d       %6d\n', y, m, d, date_num );

  end

  return
end
