diff options
| author | Tom Cherry <tomcherry@google.com> | 2018-08-22 15:14:06 -0700 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2018-08-23 02:00:17 +0000 |
| commit | 958fcbdf8a386efa5f8ae5d4ce077d01d1ce36a4 (patch) | |
| tree | c9e71f28b4bb357edbbf8a96421478d53279cf7b /base | |
| parent | d68121f6703190d5f466077dc87e9d97303c4f4e (diff) | |
| download | system_core-958fcbdf8a386efa5f8ae5d4ce077d01d1ce36a4.tar.gz system_core-958fcbdf8a386efa5f8ae5d4ce077d01d1ce36a4.tar.bz2 system_core-958fcbdf8a386efa5f8ae5d4ce077d01d1ce36a4.zip | |
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
Diffstat (limited to 'base')
| -rw-r--r-- | base/parseint_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
