function rot13_test ( )

%*****************************************************************************80
%
%% rot13_test() tests rot13().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../rot13' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rot13_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test rot13().\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 );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rot13_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../rot13' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

