function comb_row_next_test ( )

%*****************************************************************************80
%
%% COMB_ROW_NEXT_TEST tests COMB_ROW_NEXT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL 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
