function subset_weight_test ( )

%*****************************************************************************80
%
%% SUBSET_WEIGHT_TEST tests SUBSET_WEIGHT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'SUBSET_WEIGHT_TEST\n' );
  fprintf ( 1, '  SUBSET_WEIGHT returns the weight of a subset.\n' );

  n = 10;
  seed = 123456789;

  [ s1, seed ] = subset_random ( n, seed );
  i4vec_transpose_print ( n, s1, '  Subset S1:' );

  w = subset_weight ( n, s1 );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The weight of the subset is %d\n', w );

  return
end
