function perm_enum_test ( )

%*****************************************************************************80
%
%% perm_enum_test() tests perm_enum().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 November 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'perm_enum_test():\n' );
  fprintf ( 1, '  perm_enum() enumerates permutations of N items.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '   N      #\n' );
  fprintf ( 1, '  \n' );

  for n = 0 : 10
    perm_num = perm_enum ( n );
    fprintf ( 1, '  %2d  %6d\n', n, perm_num );
  end

  return
end
