function perm1_to_ytb_test ( )

%*****************************************************************************80
%
%% perm1_to_ytb_test() tests perm1_to_ytb().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 April 2009
%
%  Author:
%
%    John Burkardt
%
  n = 7;
  p = [ 7, 2, 4, 1, 5, 3, 6 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'perm1_to_ytb_test():\n' );
  fprintf ( 1, '  perm1_to_ytb() converts a permutation of (1,...,N) to a\n' );
  fprintf ( 1, '  Young tableau.\n' );

  perm1_print ( n, p, '  The permutation:' );
 
  [ lambda, a ] = perm1_to_ytb ( n, p );

  ytb_print ( n, a, '  The Young tableau:' );

  return
end
