function gray_code_enum_test ( )

%*****************************************************************************80
%
%% GRAY_CODE_ENUM_TEST tests GRAY_CODE_ENUM.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    21 November 2015
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'GRAY_CODE_ENUM_TEST\n' );
  fprintf ( 1, '  GRAY_CODE_ENUM enumerates Gray codes on N elements.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '   N    Enum(N)\n' );
  fprintf ( 1, '\n' );

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

  return
end
