Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented Dec 17, 2024

Trying to whittle down the number of failures in 3.4 specs on JRuby 10.

@headius headius added this to the JRuby 10.0.0.0 milestone Dec 17, 2024
Several new unpack specs were failing because they did not raise
an error for directives like "a 0A". The problem was that because
the handling of the space occurred in the main switch for unpack,
it also caused the "0" to be consumed as an unused occurrence
count. The unpack then proceeded on to the "A" and returned a
result rather than raising.

This change matches CRuby by moving the space check all the way to
the top of the loop, so that spaces are skipped without any
further processing of the next element in the directive.
Most of the logic was already here but there's new bits for non-
numeric ranges or ranges stepping with non-numeric values.
@headius headius merged commit cd42dc1 into jruby:10-dev Dec 19, 2024
54 of 72 checks passed
@headius headius deleted the spec_fixes branch December 19, 2024 18:26
@headius
Copy link
Member Author

headius commented Dec 19, 2024

Merged this after knocking down about 100 failures and getting us well below 100 remaining. The rest will be trickier and probably should be done a PR at a time for each class or method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant