function tableau_to_bal_seq_test ( )

%*****************************************************************************80
%
%% TABLEAU_TO_BAL_SEQ_TEST tests TABLEAU_TO_BAL_SEQ.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    26 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'TABLEAU_TO_BAL_SEQ_TEST\n' );
  fprintf ( 1, '  TABLEAU_TO_BAL_SEQ converts a tableau\n' );
  fprintf ( 1, '  to a balanced sequence.\n' );

  tab = [ 1, 2, 5, 6; ...
          3, 4, 7, 8 ];

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

  t = tableau_to_bal_seq ( n, tab );

  i4vec_transpose_print ( 2 * n, t, '  Balanced sequence:' );

  return
end
