function polyiamonds_test ( )

%*****************************************************************************80
%
%% polyiamonds_test() tests polyiamonds().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 June 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../polyiamonds' );

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

  boolean_to_string_test ( );

  boundary_hexiamond_test ( );
  boundary_is_legal_test ( );
  boundary_plot_test ( );
  boundary_print_test ( );
  boundary_range_test ( );
  boundary_reflect_test ( );
  boundary_representative_test ( );
  boundary_rotate_test ( );
  boundary_snap_test ( );
  boundary_sort_test ( );
  boundary_to_edge_test ( );
  boundary_to_triangle_test ( );
  boundary_to_vertex_test ( );
  boundary_translate_test ( );

  edge_hexiamond_test ( );
  edge_plot_test ( );
  edge_range_test ( );
  edge_reflect_test ( );
  edge_snap_test ( );
  edge_sort_test ( );
  edge_to_boundary_test ( );
  edge_to_triangle_test ( );
  edge_to_vertex_test ( );
  edge_translate_test ( );

  grid_plot_test ( );

  i4_wrap_test ( );

  i4vec_lt_test ( );

  i4vec2_print_test ( );

  ij_reflect_test ( );
  ij_rotate_test ( );
  ij_to_xy_test ( );

  ijk_fill_test ( );
  ijk_neighbors_test ( );
  ijk_to_ij_test ( );
  ijk_to_xy_test ( );

  name_hexiamond_test ( );

  polyiamond_free_enumerate_test ( );

  s_escape_tex_test ( );

  triangle_contains_ijk_test ( );
  triangle_hexiamond_test ( );
  triangle_ijk_order_test ( );
  triangle_parity_test ( );
  triangle_plot_test ( );
  triangle_print_test ( );
  triangle_range_test ( );
  triangle_reflect_test ( );
  triangle_snap_test ( );
  triangle_sort_test ( );
  triangle_to_boundary_test ( );
  triangle_to_edge_test ( );
  triangle_to_vertex_test ( );
  triangle_translate_test ( );

  vertex_contains_ijk_test ( );
  vertex_contains_point_test ( );
  vertex_hexiamond_test ( );
  vertex_plot_test ( );
  vertex_print_test ( );
  vertex_range_test ( );
  vertex_reflect_test ( );
  vertex_snap_test ( );
  vertex_sort_test ( );
  vertex_to_boundary_test ( );
  vertex_to_edge_test ( );
  vertex_to_triangle_test ( );
  vertex_translate_test ( );

  xy_to_ij_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'polyiamonds_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../polyiamonds' );

  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

