function ksubset_enum_test ( )

%*****************************************************************************80
%
%% ksubset_enum_test() tests ksubset_colex_enum().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 November 2015
%
%  Author:
%
%    John Burkardt
%
  k = 3;
  n = 5;

  fprintf ( 1, ' \n' );
  fprintf ( 1, 'KSUBSET_ENUM_TEST\n' );
  fprintf ( 1, '  KSUBSET_ENUM enumerates K-subsets of an N set.\n' );
%
%  Enumerate.
%
  fprintf ( 1, ' \n' );
  fprintf ( 1, '      K:  0   1   2   3   4   5\n' );
  fprintf ( 1, '   N\n' );
  fprintf ( 1, '\n' );
  for n = 0 : 5
    fprintf ( 1, '  %2d:  ', n );
    for k = 0 : n
      nksub = ksubset_enum ( k, n );
      fprintf ( 1, '  %2d', nksub );
    end
    fprintf ( 1, '\n' );
  end
  return
end
