function i4vec_sort_bubble_a_test ( )

%*****************************************************************************80
%
%% i4vec_sort_bubble_a_test() tests i4vec_sort_bubble_a().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 20;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4vec_sort_bubble_a_test():\n' );
  fprintf ( 1, '  i4vec_sort_bubble_a() ascending sorts,\n' );

  a = randi ( [ 0, 3*n ], n );

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

  a = i4vec_sort_bubble_a ( n, a );

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

  return
end
