function state_id_from_index_test ( )

%*****************************************************************************80
%
%% state_id_from_index_test() tests state_id_from_index().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 October 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'state_id_from_index_test():\n' );
  fprintf ( 1, '  state_id_from_index() returns the state ID (postal code)\n' );
  fprintf ( 1, '  for a given index from 1 to 50.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  First 5 ID''s:\n' );
  fprintf ( 1, '\n' );

  for index = 1 : 5
 
    id = state_id_from_index ( index );

    fprintf ( 1, '  %2d  "%s"\n', index, id );
 
  end

  return
end
