codesamplex

Sample

Detect that Set set-difference on subclassed Sets preserves the receiver class in this release.

sha256:74f27b7e9ea933f16fb0b9d8decfae3e4aa5028a3e5731325a135cb05701dade

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Detect that Set set-difference on subclassed Sets preserves the receiver class in this release. HOW
Packages
set 1.1.1
Environment
ruby
Created
2026-08-16T16:54:17Z

Commonly assumed

A Ruby developer would expect `Set#^` to return a plain `Set` regardless of subclass, so subclass-only behavior hooks are irrelevant.

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