function s_to_rot13_test ( )

%*****************************************************************************80
%
%% s_to_rot13_test() tests s_to_rot13().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 January 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 's_to_rot13_test():\n' );
  fprintf ( 1, '  s_to_rot13() applies the ROT13 cipher to a string.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  S2 = S_TO_ROT13 ( S1 ).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  -------------------S1-------------------  -------------------S2-------------------\n' );
  fprintf ( 1, '\n' );

  s1 = 'abcdefghijklmnopqrstuvwxyz';
  s2 = s_to_rot13 ( s1 );
  s1 = s_quote ( s1, '"' );
  s2 = s_quote ( s2, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s2 );

  s1 = 'Cher';
  s2 = s_to_rot13 ( s1 );
  s1 = s_quote ( s1, '"' );
  s2 = s_quote ( s2, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s2 );

  s1 = 'James Thurston Howell III';
  s2 = s_to_rot13 ( s1 );
  s1 = s_quote ( s1, '"' );
  s2 = s_quote ( s2, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s2 );

  s1 = 'The bill is $1,205,837.49 so pay now!';
  s2 = s_to_rot13 ( s1 );
  s1 = s_quote ( s1, '"' );
  s2 = s_quote ( s2, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s2 );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  S2 = S_TO_ROT13 ( S1 ).\n' );
  fprintf ( 1, '  S3 = S_TO_ROT13 ( S2 ).\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  -------------------S1-------------------  -------------------S3-------------------\n' );
  fprintf ( 1, '\n' );

  s1 = 'abcdefghijklmnopqrstuvwxyz';
  s2 = s_to_rot13 ( s1 );
  s3 = s_to_rot13 ( s2 );
  s1 = s_quote ( s1, '"' );
  s3 = s_quote ( s3, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s3 );

  s1 = 'Cher';
  s2 = s_to_rot13 ( s1 );
  s3 = s_to_rot13 ( s2 );
  s1 = s_quote ( s1, '"' );
  s3 = s_quote ( s3, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s3 );

  s1 = 'James Thurston Howell III';
  s2 = s_to_rot13 ( s1 );
  s3 = s_to_rot13 ( s2 );
  s1 = s_quote ( s1, '"' );
  s3 = s_quote ( s3, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s3 );

  s1 = 'The bill is $1,205,837.49 so pay now!';
  s2 = s_to_rot13 ( s1 );
  s3 = s_to_rot13 ( s2 );
  s1 = s_quote ( s1, '"' );
  s3 = s_quote ( s3, '"' );
  fprintf ( 1, '  %-40s  %-40s\n', s1, s3 );

  return
end

