function r8vec_swap_test ( )

%*****************************************************************************80
%
%% R8VEC_SWAP_TEST tests R8VEC_SWAP.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    04 August 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8VEC_SWAP_TEST:\n' );
  fprintf ( 1, '  R8VEC_SWAP swaps two R8VEC''s.\n' );

  n = 3;

  v1 = [ 1.0; 2.0; 3.0 ];
  v2 = [ 0.0; 5.0; 10.0 ];
  r8vec2_print ( n, v1, v2, '  V1 and V2:' );

  [ v1, v2 ] = r8vec_swap ( n, v1, v2 );

  r8vec2_print ( n, v1, v2, '  V1 and V2 after swap:' );


  return
end
