JSONTEST_FIXTURE( ValueTest, isObject ) { IsCheck checks; checks.isObject_ = true; JSONTEST_ASSERT_PRED( checkIs( emptyObject_, checks ) ); JSONTEST_ASSERT_PRED( checkIs( object1_, checks ) ); }
JSONTEST_FIXTURE( ValueTest, isArray ) { IsCheck checks; checks.isArray_ = true; JSONTEST_ASSERT_PRED( checkIs( emptyArray_, checks ) ); JSONTEST_ASSERT_PRED( checkIs( array1_, checks ) ); }
JSONTEST_FIXTURE( ValueTest, isString ) { IsCheck checks; checks.isString_ = true; JSONTEST_ASSERT_PRED( checkIs( emptyString_, checks ) ); JSONTEST_ASSERT_PRED( checkIs( string_, checks ) ); JSONTEST_ASSERT_PRED( checkIs( string1_, checks ) ); }
JSONTEST_FIXTURE( ValueTest, isUInt ) { IsCheck checks; checks.isUInt_ = true; checks.isNumeric_ = true; checks.isIntegral_ = true; JSONTEST_ASSERT_PRED( checkIs( unsignedInteger_, checks ) ); JSONTEST_ASSERT_PRED( checkIs( smallUnsignedInteger_, checks ) ); }
JSONTEST_FIXTURE( ValueTest, isBool ) { IsCheck checks; checks.isBool_ = true; checks.isIntegral_ = true; checks.isNumeric_ = true; JSONTEST_ASSERT_PRED( checkIs( false_, checks ) ); JSONTEST_ASSERT_PRED( checkIs( true_, checks ) ); }
// Construct from Istream Foam::setsToFaceZone::setsToFaceZone ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), faceSetName_(checkIs(is)), cellSetName_(checkIs(is)) {}
Foam::setAndNormalToFaceZone::setAndNormalToFaceZone ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), setName_(checkIs(is)), normal_(checkIs(is)) {}
JSONTEST_FIXTURE( ValueTest, isDouble ) { IsCheck checks; checks.isDouble_ = true; checks.isNumeric_ = true; JSONTEST_ASSERT_PRED( checkIs( real_, checks ) ); }
JSONTEST_FIXTURE( ValueTest, isNull ) { IsCheck checks; checks.isNull_ = true; checks.isObject_ = true; checks.isArray_ = true; JSONTEST_ASSERT_PRED( checkIs( null_, checks ) ); }
// Construct from Istream Foam::boxToCell::boxToCell ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), bb_(checkIs(is)) {}
// Construct from Istream Foam::setToCellZone::setToCellZone ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), setName_(checkIs(is)) {}
// Construct from Istream Foam::pointToPoint::pointToPoint ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), setName_(checkIs(is)) {}
// Construct from Istream Foam::faceToFace::faceToFace ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), setName_(checkIs(is)) {}
// Construct from Istream Foam::expressionToCell::expressionToCell ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), expression_(checkIs(is)) {}
// Construct from Istream Foam::cellToCell::cellToCell ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), setName_(checkIs(is)) {}
// Construct from Istream Foam::shapeToCell::shapeToCell ( const polyMesh& mesh, Istream& is ) : topoSetSource(mesh), type_(checkIs(is)) { if (!cellModeller::lookup(type_) && (type_ != "splitHex")) { FatalErrorIn ( "shapeToCell::shapeToCell(const polyMesh&, Istream&)" ) << "Illegal cell type " << type_ << exit(FatalError); } }