function hilbert_curve_display_test ( )

%*****************************************************************************80
%
%% HILBERT_CURVE_DISPLAY_TEST tests HILBERT_CURVE_DISPLAY.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    30 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../hilbert_curve_display' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'HILBERT_CURVE_DISPLAY_TEST:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test HILBERT_CURVE_DISPLAY.\n' );

  for m = 1 : 5
    hilbert_curve_display ( m );
    filename = sprintf ( 'hilbert_curve_order_%d.png', m );
    print ( '-dpng', filename );
    fprintf ( 1, '  Graphics saved as "%s"\n', filename );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'HILBERT_CURVE_DISPLAY_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../hilbert_curve_display' )

  return
end
