function subset_weight_test ( )

%*****************************************************************************80
%
%% subset_weight_test() tests subset_weight().
%
%  Licensing:
%
%    This code is distributed under the MIT 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;

  s1 = subset_random ( n );
  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
