codesamplex

Sample

Show that Set comparison policy can be reset by replacement even after identity mode was enabled.

sha256:be568ae4dfa6ca70997019d57f8927ef41a1281a77737965d777cc3fee8ad853

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Show that Set comparison policy can be reset by replacement even after identity mode was enabled. HOW
Packages
set 1.1.1
Environment
ruby
Created
2026-08-16T16:51:25Z

Commonly assumed

Once `Set#compare_by_identity` is enabled, a later `Set#replace` keeps identity semantics so membership for value-equal values still requires object identity.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts