function gcd1_test ( )

%*****************************************************************************80
%
%% gcd1_test() tests gcd1().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 December 2022
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'gcd1_test():\n' );
  fprintf ( 1, '  gcd1(m,n) computes the greatest common divisor of M and N.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '         m         n     gcd(m,n) gcd1(m,n)\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, m, n, f1 ] = gcd_values ( n_data );

    if ( n_data == 0 )
      break
    end

    f2 = gcd1 ( m, n );

    fprintf ( 1, '  %8d  %8d  %8d  %8d\n', m, n, f1, f2 );

  end

  return
end
