샘플
Handle CSV.parse returning CSV::Table with column-indexing and table.to_a header prepending, CSV.generate requiring write_headers: true to emit header rows from hashes, and CSV::Row symbol key sensitivity
sha256:8ff4e3da4a710e341dcf90db0b99e9af669dfab68342fc4011bfefa30d684a1b
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Handle CSV.parse returning CSV::Table with column-indexing and table.to_a header prepending, CSV.generate requiring write_headers: true to emit header rows from hashes, and CSV::Row symbol key sensitivity HOW
- 패키지
- csv 3.3.2
- 환경
- ruby
- 생성일
- 2026-08-16T15:23:52Z
컨트랙트
- assert CSV.parse with headers: true returns a CSV::Table rather than an Array
- assert table[col_name] performs column-mode indexing returning an Array across all rows
- assert table.to_a prepends the header row at index 0 rather than returning only data rows
- assert CSV.generate with headers: [...] omits the header line unless write_headers: true is passed
- assert CSV.generate appending a Hash requires headers: option and matches key types strictly
- assert CSV::Row with header_converters: :symbol does not support indifferent string key access
- assert unquoted empty fields parse as nil whereas quoted empty fields parse as empty string
파일
- Gemfile
- NOTES.md
- csx.json
- test/contract.rb
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- ruby 3 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-16 · ed25519:d91480838ac982c9