function i4vec_sort_bubble_d_test ( )

%*****************************************************************************80
%
%% I4VEC_SORT_BUBBLE_D_TEST tests I4VEC_SORT_BUBBLE_D.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 20;
  b = 0;
  c = 3 * n;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4VEC_SORT_BUBBLE_D_TEST\n' );
  fprintf ( 1, '  I4VEC_SORT_BUBBLE_A descending sorts an I4VEC.\n' );

  seed = 123456789;

  [ a, seed ] = i4vec_uniform_ab ( n, b, c, seed );

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

  a = i4vec_sort_bubble_d ( n, a );

  i4vec_print ( n, a, '  Descending sorted:' );

  return
end
