function i4vec_is_ascending_test ( )

%*****************************************************************************80
%
%% i4vec_is_ascending_test() tests i4vec_is_ascending().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 4;
  test_num = 6;
%
%  Each ROW of this definition is a COLUMN of the matrix.
%
  x_test = [ ...
    1, 3, 2, 4; ...
    2, 2, 2, 2; ...
    1, 2, 2, 4; ...
    1, 2, 3, 4; ...
    4, 4, 3, 1; ...
    9, 7, 3, 0 ]';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_is_ascending_test():\n' );
  fprintf ( 1, '  i4vec_is_ascending() determines if an integer vector ascends.\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num

    x(1:n) = x_test(1:n,test);

    i4vec_print ( n, x, '  Test vector:' );

    fprintf ( 1, '  I4VEC_IS_ASCENDING =  %d\n', i4vec_is_ascending ( n, x ) );

  end

  return
end
