Sample
Show that `T.must` is a non-nil assertion, not a non-false assertion.
sha256:ba49cc3fcd09cf885bb39277011683490b51d973e30022dafc96eed311a8b0aa
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- Show that `T.must` is a non-nil assertion, not a non-false assertion. HOW
- Packages
- sorbet-runtime 0.6.13427
- Environment
- ruby
- Created
- 2026-08-17T02:48:21Z
Commonly assumed
A model that believes `T.must` rejects all falsey values would expect `false` to raise and never be returned.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- Calling `T.must(false)` returns `false`, proving `T.must` only rejects nil, while calling `T.must(nil)` fails.
- `T.must(nil)` raises `TypeError` in this version.
Files
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9