SequenceableCollection>>endsWith: is inherited by UtfEncodedString and subclasses, but does not work correctly for extended characters requiring multiple code units.
Repro Steps
Evaluate, for example: 'ab🐬c' endsWith: 'b🐬c'
Expected behavior
Result should be true
Actual behaviour
Result is false
Additional context
The complimentary beginsWith: operation had a similar fault but that was fixed as part of the changes for #1019
SequenceableCollection>>endsWith: is inherited by UtfEncodedString and subclasses, but does not work correctly for extended characters requiring multiple code units.
Repro Steps
Evaluate, for example:
'ab🐬c' endsWith: 'b🐬c'
Expected behavior Result should be true
Actual behaviour Result is false
Additional context The complimentary
beginsWith:
operation had a similar fault but that was fixed as part of the changes for #1019