Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ZJIT: Split test_dont_inline_integer_xor_with_bignum_or_boolean#16993

Open
k0kubun wants to merge 1 commit into
ruby:masterfrom
k0kubun:zjit-split-test
Open

ZJIT: Split test_dont_inline_integer_xor_with_bignum_or_boolean#16993
k0kubun wants to merge 1 commit into
ruby:masterfrom
k0kubun:zjit-split-test

Conversation

@k0kubun
Copy link
Copy Markdown
Member

@k0kubun k0kubun commented May 15, 2026

This PR splits test_dont_inline_integer_xor_with_bignum_or_boolean into three tests.

Having multiple assert_snapshots! in a single test function means that you need to run multiple runs of zjit-test + zjit-test-update loops. This function has three pairs of Ruby code + HIR test, so there's no good reason to group them in the same test function.

When a single #[test] function holds multiple assert_snapshot! calls, only
the first one is updated per cargo-insta run, so updating all of them takes
multiple zjit-test -> zjit-test-update cycles. Splitting into one snapshot
per test lets a single cycle update them all.
@matzbot matzbot requested a review from a team May 15, 2026 22:49
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