function ytb_next_test ( )

%*****************************************************************************80
%
%% YTB_NEXT_TEST tests YTB_NEXT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    13 April 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'YTB_NEXT_TEST\n' );
  fprintf ( 1, '  YTB_NEXT generates Young tableaus.\n' );

  n = 6;
  lam = [ 3, 2, 1, 0, 0, 0 ];
  a(1:n) = 0;
  more = 0;
 
  while ( true )
 
    [ lam, a, more ] = ytb_next ( n, lam, a, more );
 
    ytb_print ( n, a, ' ' );
 
    if ( ~more )
      break
    end

  end

  return
end
