Fix typo in parseint.untouched_on_failure test
This test means to check both that ParseInt() and ParseUint() do not change the result on failure, however it erroneously tested ParseInt() twice. Test: unit tests Change-Id: If534e2525827e19aba6cae0eef45668d57623efb
This commit is contained in:
parent
d68121f670
commit
958fcbdf8a
|
@ -121,7 +121,7 @@ TEST(parseint, untouched_on_failure) {
|
|||
ASSERT_EQ(123, i);
|
||||
|
||||
unsigned int u = 123u;
|
||||
ASSERT_FALSE(android::base::ParseInt("456x", &u));
|
||||
ASSERT_FALSE(android::base::ParseUint("456x", &u));
|
||||
ASSERT_EQ(123u, u);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue