function harmonic_values_test ( )

%*****************************************************************************80
%
%% harmonic_values_test() tests harmonic_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 May 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'harmonic_values_test():\n' );
  fprintf ( 1, '  harmonic_values() returns values of \n' );
  fprintf ( 1, '  the sequence of harmonic numbers.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '     N        H(N)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n, h ] = harmonic_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '%6d      %24.16f\n', n, h );

  end

  return
end
