Esempio 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;
}
Esempio n. 2
0
int main(int argc, char** argv)
{
  init();

  while(1)
  {
    testRange();
    testCompass();
    delay(25);
  }

/*
  // Main Loop - Rover
  while(1)
  {
    // get current heading
    rover.heading = (short)getHeading();

    while((rover.range = getRange()) < 0);
    rover.proximityAlert = rover.range <= PROX_ALERT;

    // process next move
    processMove();

    // print rover state to screen
    toString();

    // sleep thread a while
    delay(25);
  }
  return 0;
*/
}
Esempio n. 3
0
int main(int argc, char * argv[])
{
	if ( argc < 2 )
	{
		std::cerr << "usage: " << argv[0] << " <in>" << std::endl;
		return EXIT_FAILURE;
	}

	std::string const filename = argv[1];	
	testArithmetic(filename);
	testRange(filename);
}
Esempio n. 4
0
File: testgc.c Progetto: lborwell/gc
void testBasics(){
    runTest(testInt());
    runTest(testBool());
    runTest(testString());
    runTest(testData());
    runTest(testBigdata());
    runTest(testRange());
    runTest(testLambda());
    runTest(testSoft());
    runTest(testPhantom());
    runTest(testWeak());
}
Esempio n. 5
0
static int testRangeHelper(const void *opaque)
{
    const struct testRangeData *data = opaque;
    return testRange(data->saddr, data->eaddr, data->size, data->pass);
}