function i4_gcdb_test ( )

%*****************************************************************************80
%
%% i4_gcdb_test() tests i4_gcdb().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 May 2015
%
%  Author:
%
%    John Burkardt
%
  test_num = 4;

  i_test = [ 288, 288, 288, 288 ];
  j_test = [ 2880, 2880, 2880, 2880 ];
  k_test = [ 2, 3, 4, 5 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4_gcdb_test():\n' );
  fprintf ( 1, '  i4_gcdb() computes the greatest common factor\n' );
  fprintf ( 1, '  of the form K^N\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       I       J       K   I4_GCDB(I,J,K)\n' );
  fprintf ( 1, '\n' );
 
  for test = 1 : test_num
    i = i_test(test);
    j = j_test(test);
    k = k_test(test);
    fprintf ( 1, '  %6d  %6d  %6d  %6d\n', i, j, k, i4_gcdb ( i, j, k ) );
  end

  return
end
