function partition_count_test ( n, w )

%*****************************************************************************80
%
%% partition_count_test() tests partition_count().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 May 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of weights.
%
%    integer W(N), a set of weights.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'partition_count_test():\n' );
  fprintf ( 1, '  partition_count() counts the number of exact solutions\n' );
  fprintf ( 1, '  of the partition problem.\n' );

  count = partition_count ( n, w );

  fprintf ( 1, '\n' );
  fprintf ( 1, '     I        W\n' );
  fprintf ( 1, '\n' );
  for i = 1 : n
    fprintf ( 1, '  %4d  %8d\n', i, w(i) );
  end
  fprintf ( 1, '\n' );
  fprintf ( 1, 'Number of solutions = %d\n', count );

  return
end
