Lines Matching refs:n1
40 int n1[5] = { 1, 2, 3, 4, 5 }; in mismatch0() local
44 pair <int*, int*> result = mismatch((int*)n1, (int*)n1 + 5, (int*)n2); in mismatch0()
45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); in mismatch0()
47 result = mismatch((int*)n1, (int*)n1 + 5, (int*)n3); in mismatch0()
48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); in mismatch0()
49 CPPUNIT_ASSERT((result.first - n1)==3); in mismatch0()
70 char const* n1[size] = { "Brett", "Graham", "Jack", "Mike", "Todd" }; in mismatch2() local
73 copy(n1, n1 + 5, (char const**)n2); in mismatch2()
74 …pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (ch… in mismatch2()
76 CPPUNIT_ASSERT(result.first == n1 + size && result.second == n2 + size); in mismatch2()
79 result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); in mismatch2()
81 CPPUNIT_ASSERT((result.first - n1)==2); in mismatch2()