CodeSampleX

Sample

Show that `Set#intersect?` does not return a boolean for invalid scalar input.

sha256:5c69231633e7101fea59bbb26a50ac658769097fd11a2acec8e6cd2c54cee639

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Show that `Set#intersect?` does not return a boolean for invalid scalar input. HOW
Packages
set 1.1.1
Environment
ruby
Created
2026-08-17T02:46:59Z

Commonly assumed

Calling `Set#intersect?` with a scalar will simply return `false`.

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