function ijk_to_ij_test ( )

%*****************************************************************************80
%
%% ijk_to_ij_test tests ijk_to_ij().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 October 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ijk_to_ij_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  ijk_to_ij returns the (i,j) coordinates of the vertices\n' );
  fprintf ( 1, '  of a triangle, given its (i,j,k) coordinates.\n' );
%
%  Check the 4x5 parallelogram
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '     IJK    IJ(1)   IJ(2)   IJ(3)\n' );
  for j = 1 : 4
    fprintf ( 1, '\n' );
    for i = 1 : 5
      for k = 0 : 1
        ijk = [ i, j, k ];
        ij = ijk_to_ij ( ijk );
        fprintf ( 1, '  (%d,%d,%d)   (%d,%d)   (%d,%d)   (%d,%d)\n', ...
          i, j, k, ij(1,1:2), ij(2,1:2), ij(3,1:2) );
      end
    end
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'ijk_to_ij_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end
