function i4vec_sort_insert_d_test ( )

%*****************************************************************************80
%
%% I4VEC_SORT_INSERT_D_TEST tests I4VEC_SORT_INSERT_D.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    20 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4VEC_SORT_INSERT_D_TEST\n' );
  fprintf ( 1, '  I4VEC_SORT_INSERT_D searches a descending \n' );
  fprintf ( 1, '  sorted vector.\n' );

  a(1:n) = [ 6, 7, 1, 0, 4, 3, 2, 1, 5, 8 ]';

  i4vec_print ( n, a, '  Before descending sort:' );

  a = i4vec_sort_insert_d ( n, a );

  i4vec_print ( n, a, '  After descending sort:' );

  return
end
