Skip to content

Commit

Permalink
Fix test bug introduced in 22f5648.
Browse files Browse the repository at this point in the history
Despite what the CL's description claimed, I changed "containsAllIn" to "containsExactlyElementsIn" instead of to "containsAtLeastElementsIn" as I'd intended.

PiperOrigin-RevId: 424680868
  • Loading branch information
cpovirk authored and Error Prone Team committed Jan 27, 2022
1 parent 9e4ca5e commit 9ef8f55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Expand Up @@ -27,10 +27,9 @@
*/
public class WildcardUnificationTemplateExample {
public void example() {
// BUG: The template should remove the hasSize call below!
ImmutableList<String> actual = ImmutableList.of("kurt", "kluever");
ImmutableList<String> expected = ImmutableList.of("kluever", "kurt");
assertThat(actual).hasSize(expected.size());
assertThat(actual).containsExactlyElementsIn(expected);
assertThat(actual).containsAtLeastElementsIn(expected);
}
}
Expand Up @@ -27,10 +27,8 @@
*/
public class WildcardUnificationTemplateExample {
public void example() {
// BUG: The template should remove the hasSize call below!
ImmutableList<String> actual = ImmutableList.of("kurt", "kluever");
ImmutableList<String> expected = ImmutableList.of("kluever", "kurt");
assertThat(actual).hasSize(expected.size());
assertThat(actual).containsExactlyElementsIn(expected);
}
}

0 comments on commit 9ef8f55

Please sign in to comment.