Ejemplo n.º 1
0
int testAll() {
  Debug::init();
  testStringConvertion();
  testTimeQueue();
  testRectangleIterator();
  testValueCheck();
  testSplit();
  testShortestPath();
  testAStar();
  testShortestPath2();
  testShortestPathReverse();
  testRange();
  testRange2();
  testContains();
  testPredicates();
  testOptional();
  testMustInitialize();
  testVec2();
  testConcat();
  testTable();
  testVec2();
  testRectangle();
  testProjection();
  testRandomExit();
  testCombine();
  testSectors1();
  testSectors2();
  testSectors3();
  testReverse();
  testReverse2();
  testReverse3();
  Debug() << "-----===== OK =====-----";
  return 0;
}
Ejemplo n.º 2
0
bool LEVEL_PARTITION::testSplitAll(bool hSplit, int minRoomSize)
{
    if(!hSplit)
    {
        for(int i = x + 1; i < x + w - 1; i++)
            if(testSplit(hSplit, i, minRoomSize))
                return true;
    }
    else
    {
        for(int i = y + 1; i < y + h - 1; i++)
            if(testSplit(hSplit, i, minRoomSize))
                return true;
    }

    return false;
}
Ejemplo n.º 3
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;
}
void KisSimpleUpdateQueueTest::testSplitUpdate()
{
    testSplit(false);
}
void KisSimpleUpdateQueueTest::testSplitFullRefresh()
{
    testSplit(true);
}