function ytb_next_test ( )

%*****************************************************************************80
%
%% ytb_next_test() tests ytb_next().
%
%  Licensing:
%
%    This code is distributed under the MIT 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
