function bal_seq_to_tableau_test ( )

%*****************************************************************************80
%
%% bal_seq_to_tableau_test() tests bal_seq_to_tableau().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'bal_seq_to_tableau_test():\n' );
  fprintf ( 1, '  bal_seq_to_tableau() converts a balanced\n' );
  fprintf ( 1, '  sequence to a tableau;\n' );
%
%  Pick a "random" balanced sequence.
%
  rank = 7;

  t = bal_seq_unrank ( rank, n );

  i4vec_transpose_print ( 2 * n, t, '  Balanced sequence:' );
%
%  Convert to a tableau.
%
  tab = bal_seq_to_tableau ( n, t );

  i4mat_print ( 2, n, tab, '  Tableau:' );

  return
end
