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, '  LATIN_COVER:\n' );

  for n = 3 : 2 : 9

    for test = 1 : 3

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

      a = latin_cover ( n, p );

      i4mat_print ( n, n, a, '  Latin cover' );

    end

  end

  return
end
