function weekday_values_test ( )

%*****************************************************************************80
%
%% weekday_values_test() tests weekday_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 January 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'weekday_values_test():\n' );
  fprintf ( 1, '  weekday_values() stores values of\n' );
  fprintf ( 1, '  the weekday for a given Y/M/D date.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     Y     M     D     W\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, y, m, d, w ] = weekday_values ( n_data );

    if ( n_data == 0 )
      break
    end

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

  end

  return
end
