function partn_enum_test ( )

%*****************************************************************************80
%
%% PARTN_ENUM_TEST tests PARTN_ENUM.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    06 December 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PARTN_ENUM_TEST\n' );
  fprintf ( 1, '  PARTN_ENUM enumerates partitions of N with maximum part NMAX.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '   NMAX:      1       2       3       4       5       6\n' );
  fprintf ( 1, '   N\n' );

  for n = 0 : 10
    fprintf ( 1, '  %2d:  ' );
    for nmax = 1 : min ( n, 6 )
      partn_num = partn_enum ( n, nmax );
      fprintf ( 1, '  %6d', partn_num );
    end
    fprintf ( 1, '\n' );
  end

  return
end
