function i4_or_test ( )

%*****************************************************************************80
%
%% I4_OR_TEST tests i4_OR.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 January 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4_OR_TEST\n' );
  fprintf ( 1, '  I4_OR returns the bitwise inclusive OR of two integers.\n' );
  fprintf ( 1, '  MATLAB provides a BITOR operator.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       I       J  I4_OR  BITOR\n' );
  fprintf ( 1, '\n' );

  seed = 123456789;

  for test = 1 : 10

    [ i, seed ] = i4_uniform_ab ( 0, 100, seed );
    [ j, seed ] = i4_uniform_ab ( 0, 100, seed );
    k = i4_or ( i, j );
    l = bitor ( i, j );

    fprintf ( 1, '  %6d  %6d  %6d  %6d\n', i, j, k, l );

  end 

  return
end
