prefer prefix ++/-- operators for non-primitive types
parent
0307327999
commit
3b608307c8
|
@ -141,7 +141,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator,
|
||||||
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
||||||
<< ", *it is " << PrintValue(*it)
|
<< ", *it is " << PrintValue(*it)
|
||||||
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
||||||
it++;
|
++it;
|
||||||
}
|
}
|
||||||
EXPECT_TRUE(it == generator.end())
|
EXPECT_TRUE(it == generator.end())
|
||||||
<< "At the presumed end of sequence when accessing via an iterator "
|
<< "At the presumed end of sequence when accessing via an iterator "
|
||||||
|
@ -161,7 +161,7 @@ void VerifyGenerator(const ParamGenerator<T>& generator,
|
||||||
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
<< ", expected_values[i] is " << PrintValue(expected_values[i])
|
||||||
<< ", *it is " << PrintValue(*it)
|
<< ", *it is " << PrintValue(*it)
|
||||||
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
<< ", and 'it' is an iterator created with the copy constructor.\n";
|
||||||
it++;
|
++it;
|
||||||
}
|
}
|
||||||
EXPECT_TRUE(it == generator.end())
|
EXPECT_TRUE(it == generator.end())
|
||||||
<< "At the presumed end of sequence when accessing via an iterator "
|
<< "At the presumed end of sequence when accessing via an iterator "
|
||||||
|
|
Loading…
Reference in New Issue