function pgm_read_test ( )

%*****************************************************************************80
%
%% pgm_read_test tests pgm_read.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 November 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PGM_READ_TEST:\n' );
  fprintf ( 1, '  Read a binary PGM file.\n' );
 
  filename = 's0101.pgm';
  pgm = pgm_read ( filename );

  imshow_numeric ( pgm, filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PGM_READ_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

