src/Testing/ModTest.cc
/* These function deal with indicies of Class Test tests. They allow one to    
   obtain the test Pix from either an interger or a string and they perform
   range checking to insure that the requested test exists in the section.   */
These function deal with indicies of Class Test tests. They allow one to
obtain the test Pix from either an interger or a string and they perform
range checking to insure that the requested test exists in the section.
These function deal with indicies of Class Test tests . They allow one to obtain the test Pix from either an interger or a string and they perform range checking to insure that the requested test exists in the section .
bool ModTest::CheckIndex(int k, int warn) const
  {
  if(k<0 || k>=(int)size())                     
    {
    if(warn)
       {
       MTerror(11, 1);                          
       if(warn>1) MTerror(16);                  
       } 
    return false;
    }
  return true;
  }
bool ModTest :: CheckIndex ( int k , int warn ) const { if ( k < 0 || k >= ( int ) size ( ) ) { if ( warn ) { MTerror ( 11 , 1 ) ; if ( warn > 1 ) MTerror ( 16 ) ; } return false ; } return true ; }
These function deal with indicies of Class Test tests.
These function deal with indicies of Class Test tests .
// Insure test is in range // Accessed element out of range // Stopping class testing