function r8_mop_test ( )

%*****************************************************************************80
%
%% r8_mop_test() tests r8_mop().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 December 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'r8_mop_test():\n' );
  fprintf ( 1, '  r8_mop() evaluates (-1.0)^I4 as an R8.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    I4  R8_MOP(I4)\n' );
  fprintf ( 1, '\n' );

  for test = 1 : 10
    i4 = randi ( [ -100, +100 ], 1, 1 );
    r8 = r8_mop ( i4 );
    fprintf ( 1, '  %4d  %4.1f\n', i4, r8 );
  end

  return
end
