Skip to content

Commit

Permalink
Fix bad test
Browse files Browse the repository at this point in the history
I added a branch in the test for #72277 to fail if I hit an odd case
while debugging. I then wrote code to handle that case and promptly
forgot about it. But I left the odd case detection branch in! And it's
failing the tests. Sorry! This zaps it. It was just a debugging
leftover.

Closes #72883
  • Loading branch information
nik9000 committed May 10, 2021
1 parent 53c2fad commit 26de09d
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ public void testThousandsAndPattern() throws IOException {
for (int i = 0; i < 100000; i++) {
int idx = between(0, Integer.MAX_VALUE);
String pattern = Integer.toString(idx, Character.MAX_RADIX);
if ((pattern.startsWith("foo") && pattern.endsWith("bar")) || (pattern.startsWith("baz") && pattern.endsWith("bort"))) {
fail();
}
if (idx < patternCount
|| (pattern.startsWith("foo") && pattern.endsWith("bar")) // 948437811
|| (pattern.startsWith("baz") && pattern.endsWith("bort")) // Can't match, but you get the idea
Expand Down

0 comments on commit 26de09d

Please sign in to comment.