Пример #1
0
bool Test()
{
	bool fail = false;
	fail = TestEnum()         || fail;
	fail = Nalin::TestNalin() || fail;
	return fail;
}
Пример #2
0
bool C_coretestBase::TestEnum(int callbackID, const Json::Value& parameters)
{
    Json::Value testEnum_JSON;
    FetchObject(parameters, "testEnum", testEnum_JSON);

    EnumTest testEnum;
    FetchUInt(testEnum_JSON, *((unsigned int*)&testEnum));



    TestEnum(callbackID, testEnum);
    return true;
}
Пример #3
0
void test_member_data_value_function()
  {
  
  p_member_data_value_class tcl;
  
  TestCharacter(tcl);
  TestInt(tcl);
  TestDouble(tcl);
  TestBool(tcl);
  TestPointer(tcl);
  TestEnum(tcl);
  TestPod(tcl);
  
  }
Пример #4
0
void Test( void )
{
    int                         i;
    char                        buf[10];

    /* create all the fundamental types */
    for( i = DW_FT_MIN; i < DW_FT_MAX; ++i ) {
        FundamentalTypes[i] = DWFundamental( Client, itoa(i,buf,10), i, 2 );
    }
    /* and let's get some constant versions of them */
    for( i = DW_FT_MIN; i < DW_FT_MAX; ++i ) {
        ConstantFundamentalTypes[i] = DWModifier( Client, FundamentalTypes[i], DW_MOD_CONSTANT );
    }
    ConstCharStar = DWPointer( Client, ConstantFundamentalTypes[DW_FT_SIGNED_CHAR], 0 );

    TestMacInfo();

    TestTypedef();
    TestPointer();
    TestString();
    TestArray();
    TestEnum();
    TestStruct1();
    TestStruct2();
    TestStruct3();
    TestSubroutineType();

    TestLexicalBlock();
    TestCommonBlock();

    TestSubroutine();

    TestLine();

    TestAranges();
    TestPubnames();
}