function square_opposite_test ( )

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

  s = square_opposite ( );

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

  return
end

