function tableau_check_test ( )

%*****************************************************************************80
%
%% tableau_check_test() tests tableau_check().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'tableau_check test():\n' );
  fprintf ( 1, '  tableau_check() checks a 2xN tableau.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Check?\n' );
  fprintf ( 1, '\n' );
  
  for test = 1 : 5

    if ( test == 1 )
      n = 0;
      t = [ ;...
            ];
    elseif ( test == 2 )
      n = 4;
      t = [ 1, 2, 3, 4; ...
            2, 4, 7, 9 ];
    elseif ( test == 3 )
      n = 4;
      t = [ 1, 3, 5, 3; ...
            2, 4, 5, 3 ];
    elseif ( test == 4 )
      n = 4;
      t = [ 1, 3, 4, 5; ...
            2, 4, 5, 3 ];
    elseif ( test == 5 )
      n = 4;
      t = [ 1, 3, 6, 7; ...
            3, 4, 7, 8 ];
    end

    fprintf ( 1, '\n' );
    check = tableau_check ( n, t );
    fprintf ( 1, '      Check = %5s\n', mat2str ( check ) );
    i4mat_print ( 2, n, t, '  Tableau:' );
    
  end

  return
end
