function r8vec_is_distinct_test ( )

%*****************************************************************************80
%
%% r8vec_is_distinct_test() tests r8vec_is_distinct().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8vec_is_distinct_test():\n' );
  fprintf ( 1, '  r8vec_is_distinct() is TRUE if an R8VEC only contains\n' );
  fprintf ( 1, '  distinct entries.\n' );

  n = 3;

  x = [ 0.0, 1.0, 3.0 ];
  fprintf ( 1, '\n' );
  r8vec_transpose_print ( n, x, '  X:' );
  if ( r8vec_is_distinct ( n, x ) )
    fprintf ( 1, '  X is distinct\n' );
  else
    fprintf ( 1, '  X is NOT distinct.\n' );
  end

  x = [ 1.5, 1.6, 1.5 ];
  fprintf ( 1, '\n' );
  r8vec_transpose_print ( n, x, '  X:' );
  if ( r8vec_is_distinct ( n, x ) )
    fprintf ( 1, '  X is distinct\n' );
  else
    fprintf ( 1, '  X is NOT distinct.\n' );
  end

  x = [ -1.0, 1.0, 10.0 ];
  fprintf ( 1, '\n' );
  r8vec_transpose_print ( n, x, '  X:' );
  if ( r8vec_is_distinct ( n, x ) )
    fprintf ( 1, '  X is distinct\n' );
  else
    fprintf ( 1, '  X is NOT distinct.\n' );
  end

  return
end
