function r8vec_shift_circular_test ( )

%*****************************************************************************80
%
%% R8VEC_SHIFT_CIRCULAR_TEST tests R8VEC_SHIFT_CIRCULAR.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SHIFT_CIRCULAR_TEST\n' );
  fprintf ( 1, '  R8VEC_SHIFT_CIRCULAR circularly shifts a vector by K positions.\n' );

  n = 10;
  a = r8vec_indicator1 ( n );
  r8vec_print ( n, a, '  The vector:' );

  k = 3;
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Using a circular shift of K = %d\n', k );

  a2 = r8vec_shift_circular ( n, a, k );
  r8vec_print ( n, a2, '  Shifted vector:' );

  return
end
