function collatz_count_values_test ( )

%*****************************************************************************80
%
%% collatz_count_values_test() tests collatz_count_values().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 March 2006
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'collatz_count_values_test():\n' );
  fprintf ( 1, '  collatz_count_values() returns values of\n' );
  fprintf ( 1, '  the length of the Collatz sequence that\n' );
  fprintf ( 1, '  starts at N.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '         N      COLLATZ_COUNT(N)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, n, count ] = collatz_count_values ( n_data );

    if ( n_data == 0 )
      break
    end 

    fprintf ( 1, '  %8d  %8d\n', n, count );

  end

  return
end
