function i4vec_sort_insert_a_test (  )

%*****************************************************************************80
%
%% i4vec_sort_insert_a_test() tests i4vec_sort_insert_a().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_sort_insert_a_test():\n' );
  fprintf ( 1, '  i4vec_sort_insert_a() sorts an integer array.\n' );

  b = 0;
  c = n;

  a = randi ( [ b, c ], n, 1 );

  i4vec_print ( n, a, '  Unsorted array:' );

  a = i4vec_sort_insert_a ( n, a );

  i4vec_print ( n, a, '  Sorted array:' );

  return
end
