function r8vec_compare_test ( )

%*****************************************************************************80
%
%% R8VEC_COMPARE_TEST tests R8VEC_COMPARE.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    05 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_COMPARE_TEST:\n' );
  fprintf ( 1, '  R8VEC_COMPARE compares the order of two R8VEC''s.\n' );

  n = 3;

  v1 = [ 1.0; 2.0; 3.0 ];
  v2 = [ 0.0; 5.0; 10.0 ];
  r8vec2_print ( v1, v2, '  V1 and V2:' );
  value = r8vec_compare ( n, v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  V1 %s V2\n', value );

  v1 = [ 1.0; 2.0; 3.0 ];
  v2 = [ 1.0; 2.0; 3.0 ];
  r8vec2_print ( v1, v2, '  V1 and V2:' );
  value = r8vec_compare ( n, v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  V1 %s V2\n', value );

  v1 = [ 1.0; 2.0; 3.0 ];
  v2 = [ 1.0; 3.0; 0.0 ];
  r8vec2_print ( v1, v2, '  V1 and V2:' );
  value = r8vec_compare ( n, v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  V1 %s V2\n', value );

  return
end
