function latin_cover_test03 ( )

%*****************************************************************************80
%
%% latin_cover_test03() tests latin_cover_3d().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 August 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'latin_cover_test03():\n' );
  fprintf ( 1, '  Test latin_cover_3d().\n' );

  for n = 3 : 2 : 9

    for test = 1 : 3

      p = zeros ( 3, n );

      p(1,1:n) = randperm ( n );
 
      perm_print ( n, p(1,1:n), '  Permutation 1' );

      p(2,1:n) = randperm ( n );
 
      perm_print ( n, p(2,1:n), '  Permutation 2' );

      p(3,1:n) = randperm ( n );
 
      perm_print ( n, p(3,1:n), '  Permutation 3' );

      A = latin_cover_3d ( n, p );

      disp ( ' ' )
      disp ( '  Latin cover:' )
      disp ( ' ' )
      disp ( A )

    end

  end

  return
end
