function i4_partition_count2_test ( )

%*****************************************************************************80
%
%% i4_partition_count2_test() tests i4_partition_count2().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_partition_count2_test():\n' );
  fprintf ( 1, '  i4_partition_count2() counts partitions of an integer.\n' );

  n_data = 0;

  fprintf ( 1, '\n' );
  fprintf ( 1, '   N     Exact     Count\n' );
  fprintf ( 1, '\n' );

  while ( true )

    [ n_data, n, p ] = i4_partition_count_values ( n_data );

    if ( n_data == 0 )
      break
    end

    p2 = i4_partition_count2 ( n );
 
    fprintf ( 1, '  %4d  %8d  %8d\n', n, p, p2(n+1) );

  end

  return
end
