function p00_mn_test ( )

%*****************************************************************************80
%
%% p00_mn_test() tests p00_mn().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    02 March 2026
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'p00_mn_test():\n' );
  fprintf ( 1, '  p00_mn() returns information about the value or range of\n' );
  fprintf ( 1, '  m: the number of equations or functions;\n' );
  fprintf ( 1, '  n: the number of variables.\n' );
%
%  Get the number of tests.
%
  test_num = p00_test_num ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Test Title\n' );
  fprintf ( 1, '  m, n information\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num

    [ m, n ] = p00_mn ( test );
    title = p00_title ( test );

    fprintf ( 1, '  %d "%s"\n', test, title );

    if ( test == 11 )
      fprintf ( 1, '      m = 31, 2 <= n <= 31\n' );
    elseif ( 0 < m && 0 < n )
      fprintf ( 1, '      m = %d, n = %d\n', m, n );
    elseif ( m < 0 )
      if ( 0 < n )
        fprintf ( 1, '      m arbitrary and m => n and n = %d.\n', n );
      elseif ( -10 == n )
        fprintf ( 1, '      m arbitrary and n arbitrary and m == n.\n' );
      else
        fprintf ( 1, '      m arbitrary and n arbitrary and m => n.\n' );
      end
    end

  end

  return
end

