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:
Tom Cherry 2018-08-22 15:14:06 -07:00
parent d68121f670
commit 958fcbdf8a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}