function partn_sf_check_test ( )

%*****************************************************************************80
%
%% PARTN_SF_CHECK_TEST tests PARTN_SF_CHECK.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    01 January 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'PARTN_SF_CHECK TEST\n' );
  fprintf ( 1, '  PARTN_SF_CHECK checks a standard form partition\n' );
  fprintf ( 1, '  of N with largest entry NMAX.\n' );
  
  for test = 1 : 7

    if ( test == 1 )
      n = 0;
      nmax = 6;
      npart = 4;
      a = [ 6, 4, 4, 1 ];
    elseif ( test == 2 )
      n = 15;
      nmax = 6;
      npart = 0;
      a = [ 6, 4, 4, 1 ];
    elseif ( test == 3 )
      n = 15;
      nmax = 6;
      npart = 4;
      a = [ 6, 6, 6, -3 ];
    elseif ( test == 4 )
      n = 15;
      nmax = 6;
      npart = 4;
      a = [ 8, 4, 2, 1 ];
    elseif ( test == 5 )
      n = 15;
      nmax = 6;
      npart = 4;
      a = [ 1, 4, 4, 6 ];
    elseif ( test == 6 )
      n = 15;
      nmax = 6;
      npart = 4;
      a = [ 6, 5, 4, 1 ];
    elseif ( test == 7 )
      n = 15;
      nmax = 6;
      npart = 4;
      a = [ 6, 4, 4, 1 ];
    end

    fprintf ( 1, '\n' );
    fprintf ( 1, '  Partition in SF form.\n' );
    fprintf ( 1, '  Partition of N = %d\n', n );
    fprintf ( 1, '  Maximum entry NMAX = %d\n', nmax );
    fprintf ( 1, '  Number of parts NPART = %d\n', npart )
    i4vec_transpose_print ( npart, a, '' )
    check = partn_sf_check ( n, nmax, npart, a );
    fprintf ( 1, '  Check = %2d\n', check );
    
  end

  return
end
