function bell_numbers_test ( )

%*****************************************************************************80
%
%% bell_numbers_test() tests bell_numbers().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 July 2011
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'bell_numbers_test():\n' );
  fprintf ( 1, '  bell_numbers() computes Bell numbers.\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n, bn ] = bell_values ( n_data );

    if ( n_data == 0 )
      break
    end

    b = bell_numbers ( n );

    fprintf ( 1, '  %8d  %12d  %12d\n', n, bn, b(n+1) );

  end

  return
end
