From 958fcbdf8a386efa5f8ae5d4ce077d01d1ce36a4 Mon Sep 17 00:00:00 2001 From: Tom Cherry Date: Wed, 22 Aug 2018 15:14:06 -0700 Subject: [PATCH] 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 --- base/parseint_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/parseint_test.cpp b/base/parseint_test.cpp index 4afa32e3e..b8cf65468 100644 --- a/base/parseint_test.cpp +++ b/base/parseint_test.cpp @@ -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); }