You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TEST] Fixes to StringMatcherTests (#88046) (#88103)
This commit fixes two issues with StringMatcherTests
**Problem 1**
Under some seeds (e.g. 3C93AEF7628D6611) prefix2 would start
with the same text as prefix1. This would mean that input that was
intended to test against prefix2 would actually match prefix1, and
violate the expectations of the test
**Problem 2**
The code had the equivalent of
randomFrom( "abc".toCharArray() )
But Hamcest does not have a randomFrom(char[]) method, so this
code was treated as
randomFrom( new Object[] { new char[] { 'a', 'b', 'c' } } )
and will return a char[]. Tests that were written assuming they had
a random character, actually had an array (char[]) and would then
stringify that object into something like
[C@5e67f506
Resolves: #88024
0 commit comments