function mono_upto_enum_test ( )

%*****************************************************************************80
%
%% mono_upto_enum_test() tests mono_upto_enum().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    09 September 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'mono_upto_enum_test():\n' );
  fprintf ( 1, '  MONO_UPTO_ENUM enumerates the number of monomials\n' );
  fprintf ( 1, '  in M variables, of total degree 0 up to N.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '    N:' );
  for n = 0 : 8
    fprintf ( 1, '  %4d', n );
  end
  fprintf ( 1, '\n' );
  fprintf ( 1, '   M +------------------------------------------------------\n' );
  for m = 1 : 8
    fprintf ( 1, '  %2d |', m );
    for n = 0 : 8
      v = mono_upto_enum ( m, n );
      fprintf ( 1, ' %5d', v );
    end
    fprintf ( 1, '\n' );
  end

  return
end
