text
stringlengths
0
2.2M
Type object;
MyManipulator manip;
ASSERT(bdlat_TypeCategory::e_ARRAY_CATEGORY
== bdlat_TypeCategoryFunctions::
manipulateArray(&object, manip));
ASSERT(-1 == bdlat_TypeCategoryFunctions::
manipulateChoice(&object, manip));
ASSERT(-1 == bdlat_TypeCategoryFunctions::
manipulateCustomizedType(&object, manip));
ASSERT(-1 == bdlat_TypeCategoryFunctions::
manipulateEnumeration(&object, manip));
ASSERT(-1 == bdlat_TypeCategoryFunctions::
manipulateNullableValue(&object, manip));
ASSERT(-1 == bdlat_TypeCategoryFunctions::
manipulateSequence(&object, manip));
ASSERT(-1 == bdlat_TypeCategoryFunctions::
manipulateSimple(&object, manip));
}
if (verbose) cout << "\nEnd of test." << endl;
} break;
case 2: {
// --------------------------------------------------------------------
// TESTING 'select' FUNCTION
//
// Concerns:
//
// Plan:
//
// Testing:
// --------------------------------------------------------------------
if (verbose) cout << "\nTESTING 'select' FUNCTION"
<< "\n============= " << endl;
{
typedef MyArrayType Type;
Type object;
ASSERT(bdlat_TypeCategory::e_ARRAY_CATEGORY
== bdlat_TypeCategoryFunctions::select(object));
}
{
typedef MyChoiceType Type;
Type object;
ASSERT(bdlat_TypeCategory::e_CHOICE_CATEGORY
== bdlat_TypeCategoryFunctions::select(object));
}
{
typedef MyCustomizedType Type;
Type object;
ASSERT(bdlat_TypeCategory::e_CUSTOMIZED_TYPE_CATEGORY
== bdlat_TypeCategoryFunctions::select(object));
}
{
typedef MyEnumerationType Type;
Type object;
ASSERT(bdlat_TypeCategory::e_ENUMERATION_CATEGORY
== bdlat_TypeCategoryFunctions::select(object));
}
{
typedef MyNullableValueType Type;
Type object;
ASSERT(bdlat_TypeCategory::e_NULLABLE_VALUE_CATEGORY
== bdlat_TypeCategoryFunctions::select(object));
}
{
typedef MySequenceType Type;
Type object;
ASSERT(bdlat_TypeCategory::e_SEQUENCE_CATEGORY
== bdlat_TypeCategoryFunctions::select(object));
}
{
typedef int Type;
Type object;