function comb_row_next_test ( )

%*****************************************************************************80
%
%% comb_row_next_test() tests comb_row_next().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 December 2014
%
%  Author:
%
%    John Burkardt
%
  n_max = 10;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'comb_row_next_test():\n' );
  fprintf ( 1, '  comb_row_next() computes a row of Pascal''s triangle.\n' );
  fprintf ( 1, '\n' );
  
  c = [];

  for n = 0 : n_max
    c = comb_row_next ( n, c );
    fprintf ( 1, '  %2d', n )
    for j = 1 : n + 1
      fprintf ( 1, '  %5d', c(j) );
    end
    fprintf ( 1, '\n' );
  end
 
  return
end
