function square_adjacent_test ( )

%*****************************************************************************80
%
%% square_adjacent_test() tests square_adjacent().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 January 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'square_adjacent_test():\n' );
  fprintf ( 1, '  square_adjacent() estimates S, the expected distance\n' );
  fprintf ( 1, '  between random points on adjacent sides of a unit square.\n' );

  s = square_adjacent ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Exact value is 0.7652\n' );
  fprintf ( 1, '  Estimate is    %g\n', s );

  return
end

