Lines Matching refs:diff
63 vector<int> diff; in setsymd1() local
64 set_symmetric_difference(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); in setsymd1()
65 CPPUNIT_ASSERT( diff.size() == 14 ); in setsymd1()
68 CPPUNIT_ASSERT( diff[i] == int_res[i] ); in setsymd1()
77 string diff; in setsymd2() local
79 back_inserter(diff), less<char>()); in setsymd2()
80 CPPUNIT_ASSERT( diff.size() == 22 ); in setsymd2()
83 CPPUNIT_ASSERT( diff[i] == char_res[i] ); in setsymd2()
115 vector<int> diff; in setdiff1() local
116 set_difference(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); in setdiff1()
117 CPPUNIT_ASSERT( diff.size() == 7 ); in setdiff1()
119 CPPUNIT_ASSERT( diff[i] == i ); in setdiff1()
128 string diff; in setdiff2() local
129 …set_difference(word1, word1 + ::strlen(word1), word2, word2 + ::strlen(word2), back_inserter(diff)… in setdiff2()
130 CPPUNIT_ASSERT( diff.size() == 11 ); in setdiff2()
132 CPPUNIT_ASSERT( diff[i] == ('A' + i) ); in setdiff2()