function dedekind_sum_values_test ( )

%*****************************************************************************80
%
%% dedekind_sum_values_test() tests dedekind_sum_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 July 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'dedekind_sum_values_test():\n' );
  fprintf ( 1, '  dedekind_sum_values() stores values of the Dedekind sum:\n' );
  fprintf ( 1, '  (N/D) = Dedekind_Sum ( P, Q ).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       P       Q       N       D\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, p, q, n, d ] = dedekind_sum_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %6d  %6d  %6d  %6d\n', p, q, n, d );

  end

  return
end
