function pivot_sequence_successor_test ( )

%*****************************************************************************80
%
%% pivot_sequence_successor_test() tests pivot_sequence_successor().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 June 2024
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pivot_sequence_successor_test():\n' );
  fprintf ( 1, '  pivot_sequence_successor() lists pivot sequences of N items,\n' );
  fprintf ( 1, '  one at a time.\n' );

  n = 5;
  t = ones ( 1, n );

  for i = 1 : 30

    t = pivot_sequence_successor ( n, t );

    for i = 1 : n
       fprintf ( 1, '%2d', t(i) );
    end
    fprintf ( 1, '\n' );

  end

  return
end
