function tableau_to_bal_seq_test ( )

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