function abc_test ( )

%*****************************************************************************80
%
%% abc_test() tests abc().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 May 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../persistence' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'abc_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test abc(), with the interface:\n' );
  fprintf ( 1, '    [a,b,c] = abc(a,b,c)\n' );

  [ a_out, b_out, c_out ] = abc ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    %g, %g, %g = abc ( );\n', a_out, b_out, c_out );

  a_in = a_out;
  b_in = 19;
  c_in = c_out;
  abc ( a_in, b_in, c_in );
  fprintf ( 1, '    abc ( %g, %g, %g );\n', ...
    a_in, b_in, c_in );

  a_in = a_out;
  b_in = 19;
  c_in = c_out;
  [ a_out, b_out, c_out ] = abc ( );
  fprintf ( 1, '    %g, %g, %g = abc ();\n', ...
    a_out, b_out, c_out );

  a_in = 50;
  b_in = 60;
  c_in = 70;
  [ a_out, b_out, c_out ] = abc ( a_in, b_in, c_in );
  fprintf ( 1, '    %g, %g, %g = abc ( %g, %g, %g );\n', ...
    a_out, b_out, c_out, a_in, b_in, c_in );

  [ a_out, b_out, c_out ] = abc ( );
  fprintf ( 1, '    %g, %g, %g = abc ( );\n', a_out, b_out, c_out );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'abc_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../persistence' );

  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

