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' );

  for test = 1 : 10

    i = randi ( [ 0, 100 ], 1 );
    j = randi ( [ 0, 100 ], 1 );
    k = i4_or ( i, j );
    l = bitor ( i, j );

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

  end 

  return
end
