Skip to content

Add specs for case/when and if with out-of-int-range Integer literals#1357

Open
sampokuokkanen wants to merge 1 commit intoruby:masterfrom
sampokuokkanen:case-if-fixnum-bignum-literals
Open

Add specs for case/when and if with out-of-int-range Integer literals#1357
sampokuokkanen wants to merge 1 commit intoruby:masterfrom
sampokuokkanen:case-if-fixnum-bignum-literals

Conversation

@sampokuokkanen
Copy link
Copy Markdown
Contributor

Add specs covering case/when and if with Integer literals outside 32-bit int range (10_000_000_000, -3_000_000_000) and beyond 64-bit long range (1 << 100).

Existing case/when specs only exercised small Integers, so optimized implementations whose codepaths diverge at the int/long boundary were not covered.

Found coverage missing when looking at jruby/jruby#9320.

Add specs covering case/when and if with Integer literals outside
32-bit int range (10_000_000_000, -3_000_000_000) and beyond 64-bit
long range (1 << 100).

Existing case/when specs only exercised small Integers, so optimized
implementations whose codepaths diverge at the int/long boundary were
not covered.
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