function ubvec_xor_test ( )

%*****************************************************************************80
%
%% ubvec_xor_test() tests ubvec_xor();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 10;
  test_num = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'UBVEC_XOR_TEST\n' );
  fprintf ( 1, '  UBVEC_XOR exclusive-ors unsigned binary vectors representing\n' );
  fprintf ( 1, '  unsigned integers;\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '        I        J        K = I XOR J\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
    i = randi ( [ 0, 100 ], 1 );
    j = randi ( [ 0, 100 ], 1 );
    ubvec1 = ui4_to_ubvec ( i, n );
    ubvec2 = ui4_to_ubvec ( j, n );
    ubvec3 = ubvec_xor ( n, ubvec1, ubvec2 );
    k = ubvec_to_ui4 ( n, ubvec3 );
    fprintf ( 1, '  %8d  %8d  %8d\n', i, j, k );
  end

  return
end
