MCPcopy Create free account
hub / github.com/aria2/aria2 / testArray_negate

Method testArray_negate

test/array_funTest.cc:32–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30CPPUNIT_TEST_SUITE_REGISTRATION(array_funTest);
31
32void array_funTest::testArray_negate()
33{
34 unsigned char a[] = {0xaa, 0x55};
35 CPPUNIT_ASSERT_EQUAL((unsigned char)0x55, (~array(a))[0]);
36 CPPUNIT_ASSERT_EQUAL((unsigned char)0xaa, (~array((unsigned char*)a))[1]);
37
38 CPPUNIT_ASSERT_EQUAL((unsigned char)0xaa, (~~array(a))[0]);
39 CPPUNIT_ASSERT_EQUAL((unsigned char)0x55, (~~array(a))[1]);
40}
41
42void array_funTest::testArray_and()
43{

Callers

nothing calls this directly

Calls 1

arrayFunction · 0.85

Tested by

no test coverage detected