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, '  pgm_read() reads 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

