Esempio n. 1
0
File: strlib.c Progetto: cs50/spl
void testStrlibModule(void) {
   testConcat();
   testIthChar();
   testSubString();
   testCharToString();
   testStringLength();
   testCopyString();
   testStringEqual();
   testStringEqualIgnoreCase();
   testStringCompare();
   testStartsWith();
   testEndsWith();
   testFindChar();
   testFindString();
   testFindLastChar();
   testFindLastString();
   testConvertToLowerCase();
   testConvertToUpperCase();
   testIntegerToString();
   testStringToInteger();
   testRealToString();
   testStringToReal();
   testTrim();
   testQuoteString();
   testQuoteHTML();
   testStringArrayLength();
   testSearchStringArray();
}
Esempio n. 2
0
int ut_AString_Utility()
{
  std::cerr << "ut_AString_Utility" << std::endl;

  int iRet = 0x0;

  testBasics(iRet);
  NEWLINE_UNIT_TEST();
  testConversion(iRet);
  NEWLINE_UNIT_TEST();
  testTrim(iRet);
  NEWLINE_UNIT_TEST();
  testSplit(iRet);
  NEWLINE_UNIT_TEST();
  testWrap(iRet);
  NEWLINE_UNIT_TEST();
  testJustify(iRet);

  return iRet;
}
Esempio n. 3
0
void testsMisc(void) {
    testTrim();
}