function subset_check_test ( )

%*****************************************************************************80
%
%% subset_check_test() tests subset_check().
%
%  Licensing:
%
%    This code is distributed under the MIT 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 = %5s\n', mat2str ( check ) );
    
  end

  return
end
