function tsat_values_test ( )

%*****************************************************************************80
%
%% tsat_values_test() tests tsat_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 February 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'tsat_values_test():\n' );
  fprintf ( 1, '  tsat_values() stores values of the saturation temperature\n' );
  fprintf ( 1, '  as a function of pressure.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      P           Tsat(P)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, p, tc ] = tsat_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %12f  %24.16f\n', p, tc );

  end

  return
end
