function ksubset_colex_check_test ( )

%*****************************************************************************80
%
%% KSUBSET_COLEX_CHECK_TEST tests KSUBSET_COLEX_CHECK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'KSUBSET_COLEX_CHECK TEST\n' );
  fprintf ( 1, '  KSUBSET_COLEX_CHECK checks a K subset of an N set.\n' );
  
  for test = 1 : 7

    if ( test == 1 )
      k = -1;
      n = 5;
      s = [ ];
    elseif ( test == 2 )
      k = 3;
      n = 0;
      s = [ 5, 3, 2 ];
    elseif ( test == 3 )
      k = 3;
      n = 5;
      s = [ 5, 2, 3 ];
    elseif ( test == 4 )
      k = 3;
      n = 5;
      s = [ 7, 3, 2 ];
    elseif ( test == 5 )
      k = 3;
      n = 5;
      s = [ 5, 3, 2 ];
    elseif ( test == 6 )
      k = 0;
      n = 5;
      s = [ ];
    elseif ( test == 7 )
      k = 0;
      n = 0;
      s = [ ];
    end

    check = ksubset_colex_check ( k, n, s );
    i4vec_transpose_print ( k, s, '  Subset:' );
    fprintf ( 1, '  N = %d, K = %d\n', n, k );
    fprintf ( 1, '  Check = %2d\n', check );
    
  end

  return
end
