Пример #1
0
LONGBOW_TEST_CASE(Global, parcSortedList_Equals)
{
    PARCSortedList *x = parcSortedList_Create();
    PARCSortedList *y = parcSortedList_Create();
    PARCSortedList *z = parcSortedList_Create();

    parcObjectTesting_AssertEquals(x, y, z, NULL);

    parcSortedList_Release(&x);
    parcSortedList_Release(&y);
    parcSortedList_Release(&z);
}
Пример #2
0
LONGBOW_TEST_CASE(Object, parcStopwatch_Equals)
{
    PARCStopwatch *x = parcStopwatch_Create();
    PARCStopwatch *y = parcStopwatch_Create();
    PARCStopwatch *z = parcStopwatch_Create();

    parcObjectTesting_AssertEquals(x, y, z, NULL);

    parcStopwatch_Release(&x);
    parcStopwatch_Release(&y);
    parcStopwatch_Release(&z);
}
Пример #3
0
LONGBOW_TEST_CASE(Global, parcProperties_Equals)
{
    PARCProperties *x = parcProperties_Create();
    PARCProperties *y = parcProperties_Create();
    PARCProperties *z = parcProperties_Create();

    parcObjectTesting_AssertEquals(x, y, z, NULL);

    parcProperties_Release(&x);
    parcProperties_Release(&y);
    parcProperties_Release(&z);
}
Пример #4
0
LONGBOW_TEST_CASE(Global, parcAtomicUint8_Equals)
{
    PARCAtomicUint8 *x = parcAtomicUint8_Create(7);
    PARCAtomicUint8 *y = parcAtomicUint8_Create(7);
    PARCAtomicUint8 *z = parcAtomicUint8_Create(7);
    PARCAtomicUint8 *u1 = parcAtomicUint8_Create(6);

    parcObjectTesting_AssertEquals(x, y, z, u1, NULL);

    parcAtomicUint8_Release(&x);
    parcAtomicUint8_Release(&y);
    parcAtomicUint8_Release(&z);
    parcAtomicUint8_Release(&u1);
}
Пример #5
0
LONGBOW_TEST_CASE(Object, parcFutureTask_Equals)
{
    PARCFutureTask *x = parcFutureTask_Create(_function, _function);
    PARCFutureTask *y = parcFutureTask_Create(_function, _function);
    PARCFutureTask *z = parcFutureTask_Create(_function, _function);
    PARCFutureTask *u1 = parcFutureTask_Create(_function, NULL);

    parcObjectTesting_AssertEquals(x, y, z, u1, NULL);

    parcFutureTask_Release(&x);
    parcFutureTask_Release(&y);
    parcFutureTask_Release(&z);
    parcFutureTask_Release(&u1);
}
Пример #6
0
LONGBOW_TEST_CASE(Object, parcThreadPool_Equals)
{
    PARCThreadPool *x = parcThreadPool_Create(6);
    PARCThreadPool *y = parcThreadPool_Create(6);
    PARCThreadPool *z = parcThreadPool_Create(6);

    parcObjectTesting_AssertEquals(x, y, z, NULL);
   
    parcThreadPool_ShutdownNow(x);
    parcThreadPool_ShutdownNow(y);
    parcThreadPool_ShutdownNow(z);
   
    parcThreadPool_Release(&x);
    parcThreadPool_Release(&y);
    parcThreadPool_Release(&z);
}
LONGBOW_TEST_CASE(Global, ccnxStackConfig_Equals)
{
    CCNxStackConfig *x = ccnxStackConfig_Create();
    CCNxStackConfig *y = ccnxStackConfig_Create();
    CCNxStackConfig *z = ccnxStackConfig_Create();

    CCNxStackConfig *u1 = ccnxStackConfig_Create();
    PARCJSONValue *val = parcJSONValue_CreateFromNULL();
    ccnxStackConfig_Add(u1, "key", val);
    parcJSONValue_Release(&val);

    parcObjectTesting_AssertEquals(x, y, z, NULL);

    ccnxStackConfig_Release(&x);
    ccnxStackConfig_Release(&y);
    ccnxStackConfig_Release(&z);
    ccnxStackConfig_Release(&u1);
}
Пример #8
0
LONGBOW_TEST_CASE(Object, parcRandomAccessFile_Equals)
{
    PARCFile *fileX = parcFile_Create("/tmp/tmpfileX");
    PARCFile *fileY = parcFile_Create("/tmp/tmpfileX");
    PARCFile *fileZ = parcFile_Create("/tmp/tmpfileX");

    PARCRandomAccessFile *x = parcRandomAccessFile_Open(fileX);
    PARCRandomAccessFile *y = parcRandomAccessFile_Open(fileY);
    PARCRandomAccessFile *z = parcRandomAccessFile_Open(fileZ);
    parcFile_Release(&fileX);
    parcFile_Release(&fileY);
    parcFile_Release(&fileZ);

    parcObjectTesting_AssertEquals(x, y, z, NULL);

    parcRandomAccessFile_Close(x);
    parcRandomAccessFile_Close(y);
    parcRandomAccessFile_Close(z);

    parcRandomAccessFile_Release(&x);
    parcRandomAccessFile_Release(&y);
    parcRandomAccessFile_Release(&z);
}