function stirling2_values_test ( )

%*****************************************************************************80
%
%% stirling2_values_test() tests stirling2_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 November 2005
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'stirling2_values_test():\n' );
  fprintf ( 1, '  stirling2_values() returns values of \n' );
  fprintf ( 1, '  the Stirling numbers of the second kind.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '      N      M        S2\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, m, n, s2 ] = stirling2_values ( n_data );

    if ( n_data == 0 )
      break
    end

    fprintf ( 1, '  %4d  %4d  %10d\n', m, n, s2 );

  end

  return
end
