本文整理汇总了C++中LONGS_EQUAL函数的典型用法代码示例。如果您正苦于以下问题:C++ LONGS_EQUAL函数的具体用法?C++ LONGS_EQUAL怎么用?C++ LONGS_EQUAL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LONGS_EQUAL函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: TEST
TEST(LightControllerSpy,RememberTheLastlightIdControlled)
{
LightController_On(10);
LONGS_EQUAL(10,LightControllerSpy_GetLastId());
LONGS_EQUAL(LIGHT_ON,LightControllerSpy_GetLastState());
}
示例2: validateExceptionCode
void validateExceptionCode(int expectedExceptionCode)
{
m_expectedException = expectedExceptionCode;
LONGS_EQUAL ( expectedExceptionCode, getExceptionCode() );
}
示例3: TEST
TEST(problem62, get_smallest_3_cube_permutation)
{
LONGS_EQUAL(345,CubePermutation().get_smallest_n_cube_permutations(3)->getRoot(0));
}
示例4: TEST
TEST(MockSupport_c, returnStringValue)
{
mock_c()->expectOneCall("boo")->andReturnStringValue("hello world");
STRCMP_EQUAL("hello world", mock_c()->actualCall("boo")->returnValue().value.stringValue);
LONGS_EQUAL(MOCKVALUETYPE_STRING, mock_c()->returnValue().type);
}
示例5: TEST
TEST(spiral, second_coner){
LONGS_EQUAL(7, get_diagnal_of_spiral(1, 1));
}
示例6: TEST
TEST(CircularBuffer, Capacity)
{
CircularBuffer buffer(2);
LONGS_EQUAL(2, buffer.Capacity());
}
示例7: TEST
TEST(IQmath_Multiplication, IQ30mpyNegative)
{
LONGS_EQUAL(_IQ30(0.75), _IQ30mpy(_IQ30(-1.5), _IQ30(-0.5))) ;
LONGS_EQUAL(_IQ30(-0.999999998), _IQ30mpy(_IQ30(-0.666666666), _IQ30(1.5))) ;
}
示例8: teardown
void teardown()
{
LONGS_EQUAL ( m_expectedException, getExceptionCode() );
clearExceptionCode();
platformMock_Uninit();
}
示例9: validateExceptionThrown
void validateExceptionThrown(int expectedExceptionCode)
{
LONGS_EQUAL(expectedExceptionCode, getExceptionCode());
clearExceptionCode();
}