function latin_cover_test01 ( )

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

  for n = 3 : 2 : 9

    for test = 1 : 3

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

      A = latin_cover ( n, p );

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

    end

  end

  return
end
