function is_gaussian_prime_generic_test ( )

%*****************************************************************************80
%
%% is_gaussian_prime_generic_test() tests is_gaussian_prime().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    26 January 2023
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'is_gaussian_prime_generic_test():\n' );
  fprintf ( 1, '  is_gaussian_prime() determines whether a complex number c\n' );
  fprintf ( 1, '  is a Gaussian prime.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '           c          is_gaussian_prime(c)      Correct result\n' );
  fprintf ( 1, '\n' );

  n_data = 0;

  while ( true )

    [ n_data, c, tf1 ] = is_gaussian_prime_values ( n_data );

    if ( n_data == 0 )
      break;
    end

    tf2 = is_gaussian_prime ( c );

    if ( tf1 )
      ch1 = 'true';
    else
      ch1 = 'false';
    end

    if ( tf2 )
      ch2 = 'true';
    else
      ch2 = 'false';
    end

    fprintf ( 1, '(%g,%g),  %s  %s\n', ...
      real ( c ), imag ( c ), ch1, ch2 );

  end

  return
end
