void peano::kernel::regulargrid::parallel::tests::SetupPartitionerTest::run() { #ifdef Parallel testMethod( test2D_12x8 ); testMethod( test2D_12x8ForkMessages ); testMethod( test2D_400x400ForkMessages ); #endif }
void peanoclaw::tests::StatisticsTest::run() { logInfo("run()", "Running StatisticsTest"); testMethod(testGetNeighborPositionOnSameLevel); testMethod(testGetNeighborPositionOnDifferentLevel); testMethod(testGetNeighborPositionOnRectangularDomainWithOffset); testMethod(testRootPatch); }
void MatrixTest::run () { testMethod (testConstruction); testMethod (testAssignment); testMethod (testMatrixOperations); testMethod (testMatrixMatrixOperations); testMethod (testTransposedMatrix); }
void peanoclaw::tests::GhostLayerCompositorTest::run() { testMethod( testTimesteppingVeto2D ); testMethod( testInterpolationFromCoarseToFinePatchLeftGhostLayer2D ); testMethod( testInterpolationFromCoarseToFinePatchRightGhostLayer2D ); testMethod( testProjectionFromCoarseToFinePatchRightGhostLayer2D ); //TODO unterweg debug // testMethod( testFluxCorrection ); testMethod( testRestrictionWithOverlappingBounds ); testMethod( testPartialRestrictionRegions ); testMethod( testPartialRestrictionRegionsWithInfiniteLowerBounds ); testMethod( testFaceAdjacentPatchTraversal2D ); testMethod( testEdgeAdjacentPatchTraversal2D ); testMethod( testEdgeAdjacentPatchTraversal3D ); }
void testReadLine() { IFILE filePtr = ifopen("testFiles/testFile.txt", "rb"); assert(filePtr != NULL); String line = ""; line.ReadLine(filePtr); assert(line == " Hello, I am a testFile. "); line.Trim(); assert(line == "Hello, I am a testFile."); // Does not compile in current version, but compiles in old verison. // This can be added back in to ensure that it will catch the difference // in return value for ReadLine (now: int; used to be: string&) // testMethod(line.ReadLine(filePtr)); line.ReadLine(filePtr); assert(temp1 == 0); testMethod(line); assert(temp1 == 1); // line.ReadLine(filePtr).Trim(); line.ReadLine(filePtr); line.Trim(); assert(line == "ThirdLine."); ifclose(filePtr); }
/* * Testing local optimization methods with box constraints */ int main(int argc, char** argv) { Box<double> box(2); MyStopper mystop; GradBoxDescent<double> gbd(box, &mystop); int rc; rc = testMethod(gbd); return rc; }
int main (void) { /* * Call test infrastructure */ testMethod(); return 0; }
/* * Preconditions: The user can pass a seed value for testing or it defaults to a set value * Postconditions: Exit the test program normally */ int main (int argc, char** argv) { // Setup Game Seed int seed; char* currentTest = METHODNAME; if(argv[1]) { seed = atoi(argv[1]); } else { seed = BASESEED; } // Initialize Game State struct gameState G; int k[10] = {adventurer, gardens, embargo, village, minion, mine, cutpurse, sea_hag, tribute, smithy}; initializeGame(2, k, seed, &G); testMethod(currentTest,seed, &G); return 0; }
void DynamicColumnMatrixTest::run () { testMethod (testBasics); }
void peanoclaw::tests::TestCase::run() { // @todo If you have further tests, add them here testMethod( test1 ); testMethod( test2 ); testMethod( test3 ); }
void LUDecompositionTest::run() { testMethod (testLUNoPivoting); testMethod (testLU); }
void dem::tests::CollisionTest::run() { testMethod( testTwoParallelTriangles0 ); testMethod( testTwoParallelTriangles1 ); }
void rotatingheatsource::expliciteuler::tests::TestCase::run() { // @todo If you have further tests, add them here testMethod( test1 ); testMethod( test2 ); testMethod( test3 ); }
void peano::applications::poisson::multigrid::tests::MultigridBatchJobTest::run() { // @todo If you have further tests, add them here testMethod( test1 ); testMethod( test2 ); testMethod( test3 ); }
#include "peano/toolbox/solver/tests/VHHwJACTest.h" registerTest(peano::toolbox::solver::tests::VHHwJACTest) tarch::logging::Log peano::toolbox::solver::tests::VHHwJACTest::_log( "peano::toolbox:solver::tests::VHHwJACTest" ); peano::toolbox::solver::tests::VHHwJACTest::VHHwJACTest(): TestCase( "peano::toolbox::solver::tests::VHHwJACTest" ){ } void peano::toolbox::solver::tests::VHHwJACTest::run() { //testMethod(testWriter) testMethod(testIntegrals) } peano::toolbox::solver::tests::VHHwJACTest::~VHHwJACTest() { } void peano::toolbox::solver::tests::VHHwJACTest::setUp() { } void peano::toolbox::solver::tests::VHHwJACTest::testWriter() { #ifdef Dim2 VirtualHierarchicalHRefinement vhh(200);