function perm1_to_ytb_test ( )

%*****************************************************************************80
%
%% PERM1_TO_YTB_TEST tests PERM1_TO_YTB.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL 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
