function pgms_pack_test ( )

%*****************************************************************************80
%
%% pgms_pack_test() tests pgms_pack().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 December 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pgms_pack_test():\n' );
  fprintf ( 1, '  Pack multiple PGM files into a single array.\n' );
 
  filelist = 's01_list.txt';
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Packing files from the list "%s"\n', filelist );

  [ pgms, w, h, pgm_num ] = pgms_pack ( filelist );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Packed array contains %d PGM files\n', pgm_num );
  fprintf ( 1, '  Each PGM has width %d and height %d\n', w, h );

  return
end

