function ubvec_next_test ( )

%*****************************************************************************80
%
%% UBVEC_NEXT_TEST tests UBVEC_NEXT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    19 November 2015
%
%  Author:
%
%    John Burkardt
%
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'UBVEC_NEXT_TEST\n' );
  fprintf ( 1, '  UBVEC_NEXT computes the "next" unsigned binary vector.\n' );
  fprintf ( 1, '\n' );

  b(1:n) = 0;

  for i = 0 : 16
    ubvec_print ( n, b, '' );
    b = ubvec_next ( n, b );
  end

  return
end
