function will_you_be_alive_test ( )

%*****************************************************************************80
%
%% will_you_be_alive_test() tests will_you_be_alive().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 January 2022
%
%  Author:
%
%   John Burkardt
%
%  Reference:
%
%    Paul Nahin,
%    Will You Be Alive 10 Years From Now?,
%    Princeton, 2014,
%    ISBN: 978-0691156804,
%    LC: QA273.25.N344
% 
  addpath ( '../will_you_be_alive' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'will_you_be_alive_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s.\n', version ( ) );
  fprintf ( 1, '  Test will_you_be_alive().\n' );

  airplane_seat_test ( );
  before_test ( );
  bernoulli_dice_test ( );
  bingo_test ( );
  black_test ( );
  chain_test ( );
  double_dart_test ( );
  double_six_test ( );
  final_test ( );
  flips_test ( );
  galileo_test ( );
  gamblers_ruin_test ( );
  golf_test ( );
  inside_test ( );
  liar_test ( );
  long_test ( );
  marks_test ( );
  newton_test ( );
  obtuse1_test ( );
  obtuse2_test ( );
  ping_pong_test ( );
  plums_test ( );
  ratio1_test ( );
  ratio2_test ( );
  spaghetti_test ( );
  square_adjacent_test ( );
  square_inside_test ( );
  square_opposite_test ( );
  squash_test ( );
  steve2_test ( );
  ten_years_test ( );
  top_test ( );
  twins_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'will_you_be_alive_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../will_you_be_alive' );

  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

