function i4vec_compare_test ( )

%*****************************************************************************80
%
%% i4vec_compare_test tests i4vec_compare.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    01 April 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_compare_test:\n' );
  fprintf ( 1, '  i4vec_compare compares the order of two i4vec''s.\n' );

  n = 3;

  v1 = [ 1; 2; 3 ];
  v2 = [ 0; 5; 10 ];
  i4vec2_print ( n, v1, v2, '  V1 and V2:' );
  value = i4vec_compare ( v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  compare = %d\n', value );

  v1 = [ 1; 2; 3 ];
  v2 = [ 1; 2; 3 ];
  i4vec2_print ( n, v1, v2, '  V1 and V2:' );
  value = i4vec_compare ( v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  compare = %d\n', value );

  v1 = [ 1; 2; 3 ];
  v2 = [ 1; 3; 0 ];
  i4vec2_print ( n, v1, v2, '  V1 and V2:' );
  value = i4vec_compare ( v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  compare = %d\n', value );

  return
end
