Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 958fcbdf authored by Tom Cherry's avatar Tom Cherry
Browse files

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
parent d68121f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}