function eternity_test ( )

%*****************************************************************************80
%
%% eternity_test() tests eternity().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 May 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../eternity' );
  addpath ( '../eternity_tile' );

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

  adjacency_plot_test ( );
  adjacency_to_triangle_ij_test ( );
  adjacency_to_triangle_xy_test ( );

  border_plot_test ( );

  eternity_grid_line_plot ( );

  hexagon_grid_line_plot ( );
  hexagon_triangle_plot_test ( );

  hexagon3_grid_line_plot ( );

  node_ij_plot_test ( );
  node_xy_plot_test ( );

  polygon_contains_point_test ( );

  rectangle_grid_line_plot_test ( );
  rectangle_node_count_test ( );
  rectangle_triangle_plot_test ( );

  s_substitute_test ( );

  triangle_k_test ( );
  triangle_neighbors_ij_plot ( );
  triangle_neighbors_xy_plot ( );
  triangle_plot_test ( );

  vertex_plot_test ( );
  vertex_xy_print_test ( );

  word_print_test ( );
  word_range_ij_test ( );
  word_range_xy_test ( );
  word_reflect_xy_test ( );
  word_representative_test ( );
  word_reverse_test ( );
  word_rotate_xy_test ( );
  word_to_edge_ij_test ( );
  word_to_edge_xy_test ( );
  word_to_vertex_xy_test ( );
  word_translate_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'eternity_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../eternity_tile' );
  rmpath ( '../eternity' );

  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

