Skip to content

test(crypto): flip stale subtle.encrypt rejection assertion to compile-success#958

Merged
proggeramlug merged 1 commit into
mainfrom
fix/stale-crypto-encrypt-test
May 18, 2026
Merged

test(crypto): flip stale subtle.encrypt rejection assertion to compile-success#958
proggeramlug merged 1 commit into
mainfrom
fix/stale-crypto-encrypt-test

Conversation

@proggeramlug
Copy link
Copy Markdown
Contributor

PR #952 added AES-GCM support (and AES-CBC routing) to crypto.subtle.encrypt, but the matching test in crates/perry-hir/tests/unimplemented_api_check.rs::crypto_subtle_encrypt_is_rejected still asserted the call should be rejected. The test was failing on every PR rebased onto main since #952 landed (visible on #941, #944, #947, #951, #953, #956, #957).

Inverts the assertion: the test now exercises the modern compile-success path so a regression in the lowering would still surface here.

cargo test -p perry-hir --test unimplemented_api_check — 10 tests pass.

…e-success

PR #952 added AES-GCM (and AES-CBC routing) support to crypto.subtle.encrypt,
but the matching test in crates/perry-hir/tests/unimplemented_api_check.rs
still asserted rejection. The test was failing on every PR rebased onto main
since #952 landed.

Inverts the assertion: the test now exercises the modern compile-success
path so a regression in the lowering would still surface.
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