function subset_check_test ( )

%*****************************************************************************80
%
%% SUBSET_CHECK_TEST tests SUBSET_CHECK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    25 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'SUBSET_CHECK TEST\n' );
  fprintf ( 1, '  SUBSET_CHECK checks a subset.\n' );
  
  for test = 1 : 3

    if ( test == 1 )
      n = 0;
      s = [];
    elseif ( test == 2 )
      n = 3;
      s = [ 1, 2, 0 ];
    elseif ( test == 3 )
      n = 5;
      s = [ 1, 0, 0, 1, 0 ];
    end

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

  return
end
