function i4vec_compare_test ( )

%*****************************************************************************80
%
%% i4vec_compare_test tests i4vec_compare.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    06 January 2020
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  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 ];
  i4vec_transpose_print ( n, v1, '  V1:' );
  i4vec_transpose_print ( n, v2, '  V2:' );
  value = i4vec_compare ( v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  compare = %d\n', value );

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

  v1 = [ 1; 2; 3 ];
  v2 = [ 1; 3; 0 ];
  i4vec_transpose_print ( n, v1, '  V1:' );
  i4vec_transpose_print ( n, v2, '  V2:' );
  value = i4vec_compare ( v1, v2 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  compare = %d\n', value );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_compare_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end
