function lambert_w_values_test ( )

%*****************************************************************************80
%
%% lambert_w_values_test() tests lambert_w_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 June 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'lambert_w_values_test():\n' );
  fprintf ( 1, '  lambert_w_values() stores values of \n' );
  fprintf ( 1, '  the Lambert W function.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      X       Branch      W(X)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, x, fx, branch ] = lambert_w_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %12f  %2d  %24.16f\n', x, branch, fx );

  end

  return
end
