codesamplex

Sample

Handle CSV::InvalidEncodingError inheriting from MalformedCSVError rather than EncodingError, ArgumentError on nil inputs, and unclosed quotes despite liberal_parsing in CSV

sha256:6c5ffc8a79396c5e831eed2edeefc0ee240d543d3937dad970365842c019aef5

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
Handle CSV::InvalidEncodingError inheriting from MalformedCSVError rather than EncodingError, ArgumentError on nil inputs, and unclosed quotes despite liberal_parsing in CSV HOW
Packages
csv 3.3.2
Environment
ruby
Created
2026-08-16T15:29:41Z

Commonly assumed

CSV::InvalidEncodingError inherits from Ruby core's EncodingError, and liberal_parsing: true suppresses unclosed quote errors.

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