function r8_min_test ( )

%*****************************************************************************80
%
%% r8_min_test() tests r8_min().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 March 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_MIN_TEST\n' );
  fprintf ( 1, '  R8_MIN returns the minimum of two R8''s.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '       A       B      C=R8_MIN(A,B)\n' );
  fprintf ( 1, '\n' );

  r8_lo = -5.0;
  r8_hi = +5.0;
  for i = 1 : 10
    a = r8_lo + ( r8_hi - r8_lo ) * rand ( 1, 1 );
    b = r8_lo + ( r8_hi - r8_lo ) * rand ( 1, 1 );
    c = r8_min ( a, b );
    fprintf ( 1, '  %8.4f  %8.4f  %8.4f\n', a, b, c );
  end

  return
end
